Skip to content

Commit

Permalink
chore: build package with npm prepack lifecycle script instead of gh …
Browse files Browse the repository at this point in the history
…workflow
  • Loading branch information
olegshilov committed May 1, 2024
1 parent e0a275a commit 7b9d69b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 7b9d69b

Please sign in to comment.