Skip to content

Commit

Permalink
fix(README): open and close brackets correctly
Browse files Browse the repository at this point in the history
- update lockfile with new name
- run publish only on release
  • Loading branch information
z0rrn committed Mar 9, 2024
1 parent 78e0d7e commit 4e7d098
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
branches:
- "**"
- "!dependabot/**"
# publish on tags
tags:
- "v**"
# publish on new release
release:
types: [created]
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:

publish:
name: Publish on npmjs
if: github.repository == 'z0rrn/hugo-install' && startsWith(github.ref, 'refs/tags/')
if: github.repository == 'z0rrn/hugo-install' && github.event_name == 'release'
needs: [lint]
runs-on: ubuntu-latest

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
First you need to specify the desired Hugo version (will fail if not set). If you forget this just rerun the install command.

```json
}
{
"hugo-install": {
"hugoVersion": "0.123.2"
}
Expand Down Expand Up @@ -68,7 +68,7 @@ hugo-install supports overwriting the download url. There are multiple ways to d
### The `hugo-install` section of your `package.json`

```json
}
{
"hugo-install": {
"hugoVersion": "0.123.2",
"URL": "https://example.com/hugo/v0.123.2/hugo_0.123.2_freebsd-amd64.tar.gz"
Expand Down
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit 4e7d098

Please sign in to comment.