Skip to content

Commit d8f1a16

Browse files
authored
ci: update publish action
1 parent 5af16c1 commit d8f1a16

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,26 @@ jobs:
1818
environment: npm
1919

2020
steps:
21-
- uses: actions/checkout@v6
21+
- name: Checkout
22+
uses: actions/checkout@v6
2223
with:
2324
fetch-depth: 0
24-
token: ${{ secrets.RELEASE_BOT_TOKEN }}
2525

26-
- uses: actions/setup-node@v6
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v6
2728
with:
2829
node-version: 24
2930
registry-url: https://registry.npmjs.org
3031
cache: npm
3132

32-
- run: npm ci
33-
- run: npm test
34-
- run: npm run build
33+
- name: Install dependencies
34+
run: npm ci
35+
36+
- name: Test
37+
run: npm test
38+
39+
- name: Build
40+
run: npm run build
3541

3642
- name: Configure git
3743
run: |
@@ -62,12 +68,12 @@ jobs:
6268
6369
- name: Create GitHub Release with generated changelog
6470
env:
65-
GH_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
71+
GH_TOKEN: ${{ github.token }}
6672
run: |
6773
gh release create "${{ steps.version.outputs.release_tag }}" \
6874
--verify-tag \
6975
--title "${{ steps.version.outputs.release_tag }}" \
7076
--generate-notes
7177
7278
- name: Publish to npm via Trusted Publisher
73-
run: npm publish --provenance --access public
79+
run: npm publish --access public

0 commit comments

Comments
 (0)