Skip to content

Commit 257913a

Browse files
committed
chore: ci workflow with oidc
1 parent 59b968d commit 257913a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/npm_release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,13 @@ jobs:
177177
if: ${{ vars.USE_NPM_TOKEN != 'true' }}
178178
run: |
179179
echo "Publishing @nativescript/ios@$NPM_VERSION to NPM with tag $NPM_TAG via OIDC trusted publishing..."
180+
unset NODE_AUTH_TOKEN
181+
if [ -n "${NPM_CONFIG_USERCONFIG:-}" ]; then
182+
rm -f "$NPM_CONFIG_USERCONFIG"
183+
fi
180184
npm publish ./dist/nativescript-ios-${{env.NPM_VERSION}}.tgz --tag $NPM_TAG --access public --provenance
185+
env:
186+
NODE_AUTH_TOKEN: ""
181187

182188
- name: Publish package (granular token)
183189
if: ${{ vars.USE_NPM_TOKEN == 'true' }}

0 commit comments

Comments
 (0)