And we shall receive even more debug logs #170
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: CI | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Corepack | |
| run: corepack enable | |
| - name: Yarn install | |
| run: yarn | |
| - name: Compile packages and examples | |
| run: yarn build | |
| - name: OIDC debug | |
| if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master') | |
| run: | | |
| echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY" | |
| echo "GITHUB_REF=$GITHUB_REF" | |
| echo "GITHUB_SHA=$GITHUB_SHA" | |
| echo "GITHUB_WORKFLOW=$GITHUB_WORKFLOW" | |
| echo "GITHUB_WORKFLOW_REF=$GITHUB_WORKFLOW_REF" | |
| echo "GITHUB_RUN_ID=$GITHUB_RUN_ID" | |
| echo "GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER" | |
| echo "GITHUB_RUN_ATTEMPT=$GITHUB_RUN_ATTEMPT" | |
| echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME" | |
| echo "GITHUB_ACTOR=$GITHUB_ACTOR" | |
| echo "ACTIONS_ID_TOKEN_REQUEST_URL=${ACTIONS_ID_TOKEN_REQUEST_URL:-}" | |
| echo "ACTIONS_ID_TOKEN_REQUEST_TOKEN=${ACTIONS_ID_TOKEN_REQUEST_TOKEN:+set}" | |
| echo "GITHUB_ACTIONS=$GITHUB_ACTIONS" | |
| npm --version | |
| npm config get registry | |
| - name: Publish packages | |
| if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master') | |
| env: | |
| FORCE_PUBLISH: "true" | |
| NODE_AUTH_TOKEN: "" | |
| run: | | |
| node scripts/publish-npm.mjs |