Skip to content

Commit

Permalink
Add deprecation workflow (#93)
Browse files Browse the repository at this point in the history
Add depdrecate workflow
  • Loading branch information
markmur authored May 20, 2024
1 parent 7a5ef48 commit 73782fa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deprecate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deprecate old versions

on:
workflow_dispatch:

jobs:
release:
name: Deprecate old versions
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Deprecate
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
npm deprecate @shopify/checkout-sheet-kit@"${{ env.VERSIONS }}" "This version is deprecated. Please upgrade to the latest version of @shopify/checkout-sheet-kit."
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSIONS: '< 2.0.1'

0 comments on commit 73782fa

Please sign in to comment.