From 64a645c33a29a57b9d00ef438e5c56e5a73da6cf Mon Sep 17 00:00:00 2001 From: amith-skyflow <168510106+amith-skyflow@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:09:26 +0530 Subject: [PATCH] Create update-release.yml --- .github/workflows/update-release.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/update-release.yml diff --git a/.github/workflows/update-release.yml b/.github/workflows/update-release.yml new file mode 100644 index 0000000..7c52d20 --- /dev/null +++ b/.github/workflows/update-release.yml @@ -0,0 +1,29 @@ +name: Update NPM Release + +on: + push: + branches: + - fix-beta-tag + +jobs: + build-sdk: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: main + fetch-depth: 0 + - uses: actions/setup-node@v1 + with: + node-version: 14.17.6 + registry-url: 'https://registry.npmjs.org' + + - name: update beta tag + run: npm dist-tag add skyflow-node@2.0.0-beta.1 beta + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: update to latest tag + run: npm dist-tag add skyflow-node@1.14.1 latest + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}