Skip to content

Commit fd8711d

Browse files
committed
chore: move npm publish to 2fa+oidc
1 parent 8b9a80e commit fd8711d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Build and Release
22
permissions:
3+
id-token: write # Required for OIDC
34
contents: write
45
on:
56
push:
@@ -393,8 +394,6 @@ jobs:
393394
mobilecli-*.zip
394395
395396
- name: Publish
396-
env:
397-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
398397
run: |
399398
# prepare binaries for distribution
400399
mv ./mobilecli-darwin/mobilecli-darwin-arm64 publish/npm/bin
@@ -403,8 +402,6 @@ jobs:
403402
mv ./mobilecli-linux/mobilecli-linux-arm64 publish/npm/bin
404403
mv ./mobilecli-windows/mobilecli-windows-amd64.exe publish/npm/bin
405404
chmod +x publish/npm/bin/*
406-
# setup npmrc
407-
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc
408405
# copy README.md
409406
cp README.md publish/npm
410407
# publish to npm

0 commit comments

Comments
 (0)