From 7b9d69bdea8c4dbd495c0736770267a74410608d Mon Sep 17 00:00:00 2001 From: Oleg Shilov Date: Wed, 1 May 2024 13:48:33 +0700 Subject: [PATCH] chore: build package with npm prepack lifecycle script instead of gh workflow --- .github/workflows/release.yml | 6 ++---- package.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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": [