diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e68704..f57dd4f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@v4 @@ -32,11 +33,8 @@ jobs: - name: Install dependencies run: yarn install --immutable - - name: Build package - run: yarn build - - name: Release - run: yarn semantic-release + run: yarn semantic-release --ci --debug env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index c343152..567c840 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "install:husky": "husky || true", "prepare": "yarn install:husky", "postinstall": "yarn prepare", - "prepack": "yarn pinst --disable", + "prepack": "yarn pinst --disable || yarn build", "postpack": "yarn pinst --enable" }, "keywords": [