From ae1da6fcaf1045f9cfcb12d0ff7967655f1fc7d9 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 1 Dec 2023 14:47:52 +1300 Subject: [PATCH] fix npm tags --- .github/workflows/set-latest.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/set-latest.yml diff --git a/.github/workflows/set-latest.yml b/.github/workflows/set-latest.yml new file mode 100644 index 00000000000..b01078e75c3 --- /dev/null +++ b/.github/workflows/set-latest.yml @@ -0,0 +1,28 @@ +name: Set npm latest + +on: + workflow_dispatch: + pull_request: + branches: [main] + push: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Set latest + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + - run: | + npm dist-tag rm effect@0.0.0-snapshot-b5569e358534da41047a687afbc85dbe8517ddca snapshot + npm dist-tag add effect@2.0.0-next.59 latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}