Skip to content

Commit 291e0a5

Browse files
committed
chore: add delete npm.yml
1 parent 66146e6 commit 291e0a5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/deprecate npm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525

2626
- name: deprecate Package Version
2727
run: |
28+
git config --local user.email "action@github.com"
29+
git config --local user.name "GitHub Action"
30+
31+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
2832
npm deprecate ${{ github.event.inputs.version }} "This version is deprecated. Please consider upgrading to a newer version."
29-
env:
30-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)