Skip to content

Commit f1d2152

Browse files
chore: use NODE_AUTH_TOKEN in env for GHA unpublish (#106)
1 parent 9f2f2cc commit f1d2152

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/unpublish-rc-manual.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ jobs:
3636
node-version: '16.x'
3737
registry-url: 'https://npm.pkg.github.com'
3838

39-
- name: Configure npm authentication
40-
run: |
41-
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
42-
echo "@envoy:registry=https://npm.pkg.github.com/" >> ~/.npmrc
43-
4439
- name: List RC versions
4540
if: github.event.inputs.action_type == 'list_versions'
4641
run: |
@@ -54,6 +49,8 @@ jobs:
5449
echo "To unpublish a version, run this workflow again with:" >> $GITHUB_STEP_SUMMARY
5550
echo "- **action_type**: unpublish" >> $GITHUB_STEP_SUMMARY
5651
echo "- **version**: the version to unpublish" >> $GITHUB_STEP_SUMMARY
52+
env:
53+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5754

5855
- name: Unpublish RC version
5956
if: github.event.inputs.action_type == 'unpublish' && github.event.inputs.version != ''

0 commit comments

Comments
 (0)