Deprecate version of package from npm #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deprecate version of package from npm | |
on: | |
workflow_dispatch: | |
inputs: | |
VERSION: | |
description: "Version to deprecate" | |
required: true | |
MESSAGE: | |
description: "Deprecation message" | |
required: false | |
default: "This version is deprecated, please use the latest stable version" | |
env: | |
LIBRARY_NAME: vue-mindee-js | |
jobs: | |
deprecate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.x | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org | |
- run: pnpm deprecate $LIBRARY_NAME@${{ inputs.VERSION }} ${{ inputs.MESSAGE }}} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |