aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/sdk.yml
blob: abe2e4c0356785843cd81d7adaa6691313b47638 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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]+"

permissions:
  id-token: write # Required for OIDC
  contents: read

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

      # npm 11.5.1 or later is required for trusted publishing
      - run: npm install -g npm@latest

      - run: pnpm publish --access public --no-git-checks
        working-directory: packages/sdk