From fc2d0722a6858c04b809712db4246f9d5d9ce26d Mon Sep 17 00:00:00 2001 From: Matt Carvin <90224411+mcarvin8@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:25:11 -0500 Subject: [PATCH] ci: add workflow to deprecate versions --- .../workflows/manual-deprecate-versions.yml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/manual-deprecate-versions.yml diff --git a/.github/workflows/manual-deprecate-versions.yml b/.github/workflows/manual-deprecate-versions.yml new file mode 100644 index 0000000..facccd6 --- /dev/null +++ b/.github/workflows/manual-deprecate-versions.yml @@ -0,0 +1,32 @@ +--- +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 apex-code-coverage-transformer@$"${{ github.event.inputs.version-expression }}" "${{ github.event.inputs.rationale }}" + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}