Skip to content

Commit 2acaccf

Browse files
committed
Add workflow to unpublish old versions
1 parent c73dadb commit 2acaccf

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/unpublish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Unpublish Old Versions
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
unpublish:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: '20'
14+
registry-url: 'https://registry.npmjs.org'
15+
16+
- name: Unpublish old versions
17+
run: |
18+
npm unpublish made-refine@0.1.0-beta.1 || echo "0.1.0-beta.1 already unpublished or not found"
19+
npm unpublish made-refine@0.1.0-beta.2 || echo "0.1.0-beta.2 already unpublished or not found"
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)