Skip to content

Commit 4c06d9a

Browse files
committed
ci: trusted publisher
1 parent 54720fa commit 4c06d9a

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Release
22

3-
permissions:
4-
contents: write
5-
id-token: write
6-
73
on:
84
push:
95
tags:
@@ -12,13 +8,18 @@ on:
128
jobs:
139
release:
1410
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
id-token: write
15+
1516
steps:
1617
- uses: actions/checkout@v4
1718
with:
1819
fetch-depth: 0
1920

2021
- name: Setup pnpm
21-
uses: pnpm/action-setup@v3.0.0
22+
uses: pnpm/action-setup@v4.1.0
2223

2324
- name: Setup node
2425
uses: actions/setup-node@v4
@@ -33,13 +34,10 @@ jobs:
3334
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
3435

3536
- name: Install deps
36-
run: pnpm i --frozen-lockfile
37+
run: pnpm i
3738

3839
- name: Build
3940
run: pnpm run build
4041

4142
- name: Publish
4243
run: pnpm publish -r --access public --no-git-checks
43-
env:
44-
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
45-
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)