You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/main.yml
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,8 @@ jobs:
33
33
34
34
- name: Setup node
35
35
uses: actions/setup-node@v2
36
+
with:
37
+
node-version: '22'
36
38
37
39
- name: Get yarn cache directory path
38
40
id: yarn-cache-dir-path
@@ -119,27 +121,24 @@ jobs:
119
121
runs-on: 'ubuntu-24.04'
120
122
permissions:
121
123
contents: read
124
+
id-token: write # Required for OIDC
122
125
steps:
123
126
# just is called in `yarn prepack`, which is called during the `publish` operation
124
127
- uses: extractions/setup-just@v2
125
128
- uses: actions/checkout@v2
126
-
- run: sudo apt-get install -y oathtool
129
+
- uses: actions/setup-node@v4
130
+
with:
131
+
node-version: '24'
132
+
registry-url: 'https://registry.npmjs.org'
133
+
- run: npm install -g npm@11
127
134
- name: Publish to NPM
128
135
run: |
129
136
set -euxo pipefail
130
-
npm config set //registry.npmjs.org/:_authToken $NPM_AUTH_TOKEN
131
-
# print the NPM user name for validation
132
-
npm whoami
133
137
VERSION=$(cat package.json | jq -r '.version')
134
138
# use the tag correlating to this release channel
135
139
NPM_TAG=$(cat package.json | jq -r '.version | if contains("beta") then "public-preview" else if contains("alpha") then "private-preview" else "latest" end end')
0 commit comments