From 4c353c541debc376925e6e933df02c378bc9ca2f Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Wed, 4 Dec 2024 00:44:02 +0300 Subject: [PATCH] fix: move jsr publish to pkg postrelease script --- .github/workflows/ci.yaml | 7 +------ package.json | 3 ++- 2 files changed, 3 insertions(+), 7 deletions(-) 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",