Skip to content

Commit a4bff9c

Browse files
authored
Merge pull request #726 from MasterKale/publish-test-server
Fine-tune server publish workflow
2 parents 38fa958 + d714948 commit a4bff9c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/publishServer.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
permissions:
1111
contents: read
12-
id-token: write # The OIDC ID token is used for authentication with JSR.
12+
id-token: write # The OIDC ID token is used for authentication with JSR and NPM
1313

1414
env:
1515
NODE_VERSION: '22.x'
@@ -24,8 +24,12 @@ jobs:
2424
with:
2525
node-version: ${{ env.NODE_VERSION }}
2626
registry-url: 'https://registry.npmjs.org'
27-
- name: Confirm installed Node version
28-
run: node -v
27+
- name: Upgrade NPM
28+
# Trusted Publishing requires at least npm 11.5.1
29+
run: npm install -g npm@^11.5.1
30+
31+
- name: Confirm installed Node and NPM versions
32+
run: 'echo "Node: $(node -v)" && echo "NPM: $(npm -v)"'
2933

3034
# Install Deno
3135
- name: Setup Deno ${{ env.DENO_VERSION }}
@@ -56,5 +60,3 @@ jobs:
5660
# Publish to JSR and NPM
5761
- name: Publish to JSR and NPM
5862
run: deno task publish:server
59-
env:
60-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)