From a1da9fb440daa05afbd2663496cd42e15c922031 Mon Sep 17 00:00:00 2001 From: Natxo Date: Sat, 2 May 2026 23:59:56 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20.github/workflows/deprecate.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deprecate.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/deprecate.yml diff --git a/.github/workflows/deprecate.yml b/.github/workflows/deprecate.yml new file mode 100644 index 0000000..146cbbc --- /dev/null +++ b/.github/workflows/deprecate.yml @@ -0,0 +1,32 @@ +name: Deprecate npm version + +on: + workflow_dispatch: + inputs: + version: + description: 'Versión a deprecar' + required: true + message: + description: 'Mensaje de deprecación (opcional)' + required: false + default: 'This version is deprecated. Please upgrade to the latest version.' + +jobs: + deprecate: + runs-on: ubuntu-latest + steps: + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '20' + registry-url: 'https://registry.npmjs.org' + + - name: Deprecate version + run: npm deprecate sigpro-ui@${{ github.event.inputs.version }} "${{ github.event.inputs.message }}" + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Verify deprecation + run: npm view sigpro-ui@${{ github.event.inputs.version }} deprecated + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file