Skip to content

Commit 456ecff

Browse files
chore: update release workflow for improved permissions and action versions
1 parent eeee689 commit 456ecff

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Release
22

33
permissions:
44
contents: write
5+
id-token: write
56

67
on:
78
push:
@@ -12,14 +13,26 @@ jobs:
1213
release:
1314
runs-on: ubuntu-latest
1415
steps:
15-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v4
1617
with:
1718
fetch-depth: 0
1819

19-
- uses: actions/setup-node@v6
20+
- uses: pnpm/action-setup@v4
21+
22+
- uses: actions/setup-node@v4
2023
with:
2124
node-version: lts/*
25+
registry-url: 'https://registry.npmjs.org'
26+
cache: pnpm
27+
28+
- run: pnpm install
29+
30+
- run: pnpm build
31+
32+
- run: npm publish --provenance --access public
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2235

2336
- run: npx changelogithub
2437
env:
25-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)