name: "Publish TypeScript SDK"
on:
  push:
    tags: ["sdk/typescript/v**"]
jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-go@v3
        with:
          go-version: "1.21"
      - run: ./hack/make sdk:typescript:publish ${{ github.ref_name }}
        env:
          NPM_TOKEN: ${{ secrets.RELEASE_NPM_TOKEN }}
          DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}
