ci: fix pnpm publish to use OIDC trusted publishing with provenance (… #564
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: temporal-js | |
| on: | |
| pull_request: | |
| paths: | |
| - "integrations/temporal-js/**" | |
| - "js/**" | |
| - ".github/workflows/temporal-js-test.yaml" | |
| push: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [20, 22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - uses: pnpm/action-setup@v4 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build braintrust | |
| working-directory: js | |
| run: pnpm run build | |
| - name: Build @braintrust/temporal | |
| working-directory: integrations/temporal-js | |
| run: pnpm run build | |
| - name: Run @braintrust/temporal tests | |
| working-directory: integrations/temporal-js | |
| run: pnpm run test |