Skip to content

Commit

Permalink
chore: add dist-tag-rm script to remove tags from npm (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs authored Sep 27, 2023
1 parent 7ad1b68 commit 5d19b12
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/remove-npm-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Remove npm tag

on:
workflow_dispatch:

jobs:
remove-npm-tag:
name: Remove an npm dist tag for the current branch
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0

- name: Set deployment token
run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Remove npm dist tag
run: pnpm dist-tag-rm
env: TAG=${{ github.ref_name }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"build": "turbo run build",
"clean": "turbo run clean",
"dev": "turbo run dev --concurrency 100",
"dist-tag-rm": "pnpm recursive exec -- sh -c 'npm dist-tag rm $(cat package.json | jq -r \".name\") $TAG || true'",
"foundryup": "curl -L https://foundry.paradigm.xyz | bash && bash ~/.foundry/bin/foundryup",
"gas-report": "pnpm recursive run gas-report",
"lint": "pnpm prettier:check && eslint . --ext .ts --ext .tsx",
Expand Down

0 comments on commit 5d19b12

Please sign in to comment.