1010# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#release
1111# - https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions
1212# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#release
13- # - https://docs.npmjs.com/generating-provenance-statements
13+ # - https://docs.npmjs.com/trusted-publishers
1414# - https://github.com/actions/checkout
1515# - https://github.com/actions/setup-node
1616# - https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#yarn2-configuration
6767 env :
6868 ARTIFACT : ${{ steps.artifact.outputs.artifact }}
6969 FLAGS : ${{ steps.dist.outputs.flag }}
70- run : echo "result=npm publish --provenance $FLAGS $ARTIFACT" >>$GITHUB_OUTPUT
70+ run : echo "result=npm publish $FLAGS $ARTIFACT" >>$GITHUB_OUTPUT
7171 gpr :
7272 needs : preflight
7373 permissions :
9292 name : Setup .npmrc file
93939494 with :
95- always-auth : true
9695 node-version-file : .nvmrc
9796 registry-url : https://npm.pkg.github.com
9897 scope : ${{ github.repository_owner }}
@@ -101,8 +100,6 @@ jobs:
101100 run : cat $NPM_CONFIG_USERCONFIG
102101 - id : publish
103102 name : Publish package
104- env :
105- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
106103 run : ${{ needs.preflight.outputs.command }}
107104 npm :
108105 needs : preflight
@@ -131,7 +128,6 @@ jobs:
131128 name : Setup .npmrc file
132129133130 with :
134- always-auth : true
135131 node-version-file : .nvmrc
136132 registry-url : https://registry.npmjs.org
137133 scope : ${{ github.repository_owner }}
@@ -140,6 +136,4 @@ jobs:
140136 run : cat $NPM_CONFIG_USERCONFIG
141137 - id : publish
142138 name : Publish package
143- env :
144- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
145139 run : ${{ needs.preflight.outputs.command }}
0 commit comments