Skip to content

Commit 73782fa

Browse files
authored
Add deprecation workflow (#93)
Add depdrecate workflow
1 parent 7a5ef48 commit 73782fa

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/deprecate.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deprecate old versions
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
name: Deprecate old versions
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Setup
15+
uses: ./.github/actions/setup
16+
17+
- name: Deprecate
18+
run: |
19+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
20+
npm deprecate @shopify/checkout-sheet-kit@"${{ env.VERSIONS }}" "This version is deprecated. Please upgrade to the latest version of @shopify/checkout-sheet-kit."
21+
env:
22+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
VERSIONS: '< 2.0.1'

0 commit comments

Comments
 (0)