diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1c8bcad..0a8cbed 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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' diff --git a/package.json b/package.json index f46b621..9874f1d 100644 --- a/package.json +++ b/package.json @@ -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",