Skip to content

Commit

Permalink
add version check in publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
uzmoi committed Oct 4, 2024
1 parent 721feab commit 5ae7915
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
cache: npm
registry-url: https://registry.npmjs.org

- name: Check version
run: jq -e '.version as $v | "${{ github.ref }}" | endswith("/v" + $v)' package.json

- run: npm ci
- run: npm run build

Expand All @@ -34,4 +37,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Check version
run: jq -e '.version as $v | "${{ github.ref }}" | endswith("/v" + $v)' jsr.json

- run: npx jsr publish
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"accum",
"biomejs",
"emnorst",
"endswith",
"fuga",
"hoge",
"parsea",
Expand Down

0 comments on commit 5ae7915

Please sign in to comment.