Skip to content

Commit

Permalink
ci: add workflow to deprecate versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarvin8 committed Jan 21, 2025
1 parent 9b1d933 commit 621b9f7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/manual-deprecate-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Deprecate versions

on:
workflow_dispatch:
inputs:
version-expression:
description: version number (semver format) or range to deprecate
required: true
type: string
rationale:
description: explain why this version is deprecated. No message content will un-deprecate the version
type: string

jobs:
deprecate:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: "https://registry.npmjs.org"

- name: Change version
run: npm deprecate xml2json-disassembler@$"${{ github.event.inputs.version-expression }}" "${{ github.event.inputs.rationale }}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 621b9f7

Please sign in to comment.