From 73782fad5ffead2761e6a3ac9033354cb143766b Mon Sep 17 00:00:00 2001 From: Mark Murray <2034704+markmur@users.noreply.github.com> Date: Mon, 20 May 2024 13:12:52 +0100 Subject: [PATCH] Add deprecation workflow (#93) Add depdrecate workflow --- .github/workflows/deprecate.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..c8b2ac0 --- /dev/null +++ b/.github/workflows/deprecate.yml @@ -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'