Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 0b4ae8d

Browse files
committed
build: Update release workflow with fetch-depth and GH_PAT
1 parent 2e0a4bf commit 0b4ae8d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
token: ${{ secrets.GH_PAT }}
2023
- name: Setup Node.js
2124
uses: actions/setup-node@v4
2225
with:
@@ -27,12 +30,8 @@ jobs:
2730
run: npm test
2831
- name: Build
2932
run: npm run build
30-
- name: Configure npm
31-
run: |
32-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
33-
npm config set access public
3433
- name: Release
3534
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
3736
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3837
run: npx semantic-release

0 commit comments

Comments
 (0)