Skip to content

Commit 12540d7

Browse files
refactor: use trusted publishing
1 parent 2412d41 commit 12540d7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
4545
with:
4646
node-version-file: .node-version
47-
cache: 'pnpm'
47+
cache: "pnpm"
4848
- uses: dtolnay/rust-toolchain@stable
4949
with:
5050
targets: ${{ matrix.target }}
@@ -87,18 +87,14 @@ jobs:
8787
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
8888
with:
8989
node-version-file: .node-version
90-
cache: 'pnpm'
90+
cache: "pnpm"
9191
registry-url: https://registry.npmjs.org
92-
- run: npm whoami
93-
env:
94-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9592

9693
- run: pnpm install
9794
- run: pnpm napi create-npm-dirs
9895
- run: pnpm napi artifacts -o .
9996
- run: node scripts/binaries.mjs
10097
- run: pnpm publish --access public --no-git-checks
10198
env:
102-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10399
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104100
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)