Skip to content

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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
@@ -67,7 +67,7 @@ jobs:
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:
@@ -92,7 +92,6 @@ jobs:
9292
name: Setup .npmrc file
9393
uses: actions/[email protected]
9494
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
132129
uses: actions/[email protected]
133130
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

Comments
 (0)