Skip to content

Commit a9a9899

Browse files
committed
feat(npm): use trusted publishing (attempt 2)
1 parent ffec8f8 commit a9a9899

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
with:
5555
node-version: 24
5656
registry-url: "https://registry.npmjs.org"
57+
- name: Update npm
58+
run: npm install -g npm@latest
5759
- name: Install rust toolchain
5860
uses: actions-rs/toolchain@v1
5961
with:
@@ -79,8 +81,6 @@ jobs:
7981
run: |
8082
just --dotenv-filename .env.${{ matrix.build.NAME }} create-npm-binary-package
8183
just --dotenv-filename .env.${{ matrix.build.NAME }} publish-npm-binary-package
82-
env:
83-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8484
- name: Upload artifact
8585
uses: actions/upload-artifact@v4
8686
with:
@@ -99,6 +99,8 @@ jobs:
9999
with:
100100
node-version: 24
101101
registry-url: "https://registry.npmjs.org"
102+
- name: Update npm
103+
run: npm install -g npm@latest
102104
- name: Install just
103105
uses: extractions/setup-just@v1
104106
with:
@@ -109,5 +111,3 @@ jobs:
109111
npm install
110112
just --dotenv-filename .env.linux-x64-glibc create-npm-root-package
111113
just --dotenv-filename .env.linux-x64-glibc publish-npm-root-package
112-
env:
113-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)