File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ jobs:
150150 path : ${{env.TEST_FOLDER}}/test_results.xcresult
151151 publish :
152152 runs-on : ubuntu-latest
153+ environment : npm-publish
153154 needs :
154155 - build
155156 - test
@@ -172,10 +173,17 @@ jobs:
172173 with :
173174 name : npm-package
174175 path : dist
175- - name : Publish package
176+ - name : Publish package (OIDC trusted publishing)
177+ if : ${{ vars.USE_NPM_TOKEN != 'true' }}
176178 run : |
177- echo "Publishing @nativescript/ios@$NPM_VERSION to NPM with tag $NPM_TAG..."
178- npm publish ./dist/nativescript-ios-${{env.NPM_VERSION}}.tgz --tag $NPM_TAG --provenance
179+ echo "Publishing @nativescript/ios@$NPM_VERSION to NPM with tag $NPM_TAG via OIDC trusted publishing..."
180+ npm publish ./dist/nativescript-ios-${{env.NPM_VERSION}}.tgz --tag $NPM_TAG --access public --provenance
181+
182+ - name : Publish package (granular token)
183+ if : ${{ vars.USE_NPM_TOKEN == 'true' }}
184+ run : |
185+ echo "Publishing @nativescript/ios@$NPM_VERSION to NPM with tag $NPM_TAG via granular token..."
186+ npm publish ./dist/nativescript-ios-${{env.NPM_VERSION}}.tgz --tag $NPM_TAG --access public --provenance
179187 env :
180188 NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
181189 github-release :
You can’t perform that action at this time.
0 commit comments