Skip to content

Commit abbbcdf

Browse files
committed
chore(ci): add npm deprecation workflow
1 parent 4bdc211 commit abbbcdf

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deprecate npm package versions
2+
3+
on:
4+
push:
5+
branches:
6+
- chore/deprecate-0.9.4-npm
7+
8+
jobs:
9+
deprecate:
10+
name: Deprecate ${{ matrix.package_name }}@0.9.4
11+
runs-on: ubuntu-latest
12+
environment: npm
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
package_name:
17+
- hunkdiff
18+
- hunkdiff-linux-arm64
19+
- hunkdiff-linux-x64
20+
- hunkdiff-darwin-arm64
21+
- hunkdiff-darwin-x64
22+
steps:
23+
- name: Set up Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 22
27+
registry-url: https://registry.npmjs.org
28+
29+
- name: Verify npm auth
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
run: npm whoami
33+
34+
- name: Deprecate package version
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
DEPRECATION_MESSAGE: 0.9.4 was published from the wrong branch; please use 0.9.5 or later.
38+
run: npm deprecate "${{ matrix.package_name }}@0.9.4" "$DEPRECATION_MESSAGE"

0 commit comments

Comments
 (0)