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 }}