Skip to content

Commit ea33b96

Browse files
authored
ci: oidc (#151)
1 parent 19d3b67 commit ea33b96

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
uses: actions/setup-node@v4
7676
if: ${{ !matrix.settings.docker }}
7777
with:
78-
node-version-file: ".node-version"
78+
node-version-file: '.node-version'
7979
check-latest: true
8080
cache: yarn
8181
- name: Install rust
@@ -126,9 +126,11 @@ jobs:
126126
- name: Setup node
127127
uses: actions/setup-node@v4
128128
with:
129-
node-version-file: ".node-version"
129+
node-version-file: '.node-version'
130130
check-latest: true
131131
cache: yarn
132+
- name: Update npm
133+
run: npm install -g npm@11.5.1
132134
- name: Install dependencies
133135
run: yarn install
134136
- name: Download all artifacts
@@ -168,8 +170,7 @@ jobs:
168170
run: |
169171
set -ex
170172
npm config set provenance true
171-
npm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN"
172-
npm config set access public
173+
npm config set //registry.npmjs.org/
173174
npm whoami
174175
if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then
175176
yarn napi prepublish -t npm --gh-release-id ${{ steps.gh-release.outputs.id }}
@@ -183,7 +184,6 @@ jobs:
183184
fi
184185
env:
185186
GITHUB_TOKEN: ${{ github.token }}
186-
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
187187
publish-docs:
188188
runs-on: ubuntu-latest
189189
needs:
@@ -194,7 +194,7 @@ jobs:
194194
- name: Setup node
195195
uses: actions/setup-node@v4
196196
with:
197-
node-version-file: ".node-version"
197+
node-version-file: '.node-version'
198198
check-latest: true
199199
cache: yarn
200200
- name: Install dependencies
@@ -204,4 +204,4 @@ jobs:
204204
- name: Build Project Artifacts
205205
run: yarn dlx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
206206
- name: Deploy Project Artifacts to Vercel
207-
run: yarn dlx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
207+
run: yarn dlx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)