Skip to content

Commit

Permalink
fix: move jsr publish to pkg postrelease script
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 3, 2024
1 parent c24988e commit 4c353c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,7 @@ jobs:
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
run: npm_config_yes=true npx zx-semrel
- name: jsr publish
if: github.ref == 'refs/heads/main'
run: |
node src/scripts/build-jsr.mjs
npx jsr publish --allow-dirty
run: npx zx-semrel

pr:
if: github.event_name == 'pull_request'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"test:smoke:cjs": "node src/test/smoke/invoke.test.cjs",
"test:jsr": "jsr publish --dry-run",
"test:audit": "npm audit",
"publish:draft": "npm run build && npm publish --no-git-tag-version"
"publish:draft": "npm run build && npm publish --no-git-tag-version",
"postrelease": "node src/scripts/build-jsr.mjs && jsr publish --allow-dirty"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 4c353c5

Please sign in to comment.