Skip to content

Commit

Permalink
chore: add delete npm.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Jan 15, 2024
1 parent 66146e6 commit 291e0a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deprecate npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:

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

0 comments on commit 291e0a5

Please sign in to comment.