From 7fb89f07decbb8b72f530af62b5de1a30eaae430 Mon Sep 17 00:00:00 2001 From: John Doe <265342703+SpotlightOn@users.noreply.github.com> Date: Fri, 9 Oct 2026 19:22:25 +0200 Subject: [PATCH] chore: add workflow to remove stale beta dist-tags --- .github/workflows/remove-beta-dist-tag.yml | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/remove-beta-dist-tag.yml diff --git a/.github/workflows/remove-beta-dist-tag.yml b/.github/workflows/remove-beta-dist-tag.yml new file mode 100644 index 0000000..2153cb1 --- /dev/null +++ b/.github/workflows/remove-beta-dist-tag.yml @@ -0,0 +1,27 @@ +name: Remove beta dist-tags + +on: + workflow_dispatch: + +permissions: + contents: read + +env: + FORCE_COLOR: 2 + +jobs: + untag: + name: Remove stale beta dist-tags + runs-on: ubuntu-latest + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + steps: + - name: Configure npm authentication + run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc + + - name: Remove beta dist-tag from @svgforge/svgforge-cli + run: npm dist-tag rm @svgforge/svgforge-cli beta + + - name: Remove beta dist-tag from @svgforge/svgforge + continue-on-error: true # The CLI token may not have access to the main package + run: npm dist-tag rm @svgforge/svgforge beta