diff --git a/.github/workflows/build_and_publish.yaml b/.github/workflows/build_and_publish.yaml index 234eb14..ac6c92a 100644 --- a/.github/workflows/build_and_publish.yaml +++ b/.github/workflows/build_and_publish.yaml @@ -28,6 +28,11 @@ jobs: - name: Build the project run: npm run build + - name: Mark beta as latest + run: npm dist-tag add hosted-fields-sdk@1.3.1 latest + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish to npm if: github.event_name == 'push' && github.ref == 'refs/heads/master' run: npm publish