diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml new file mode 100644 index 000000000..d14057c8d --- /dev/null +++ b/.github/workflows/sdk.yml @@ -0,0 +1,24 @@ +name: Publish CLI Package to npm +on: + push: + tags: + # This is a glob pattern not a regex + - 'sdk/v[0-9]+.[0-9]+.[0-9]+' +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup + uses: ./tooling/github/setup + + - name: Build SDK + run: pnpm build + working-directory: packages/sdk + + - run: pnpm publish --access public --no-git-checks + working-directory: packages/sdk + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} +