add beads #177
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: Release | ||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - main | ||
| branches-ignore: | ||
| - beads-sync | ||
| concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
| env: | ||
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
| TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| id-token: write | ||
| jobs: | ||
| quality: | ||
| name: Quality Checks | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@v4 | ||
| - name: Enable Corepack | ||
| run: corepack enable | ||
| - name: Setup Node.js 22.x | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| cache: "pnpm" | ||
| - name: Install Dependencies | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Lint | ||
| run: pnpm lint | ||
| - name: Type Check | ||
| run: pnpm typecheck | ||
| - name: Install Doppler CLI | ||
| uses: dopplerhq/cli-action@v3 | ||
| - name: Get OIDC token | ||
| run: | | ||
| TOKEN=$(curl -s -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \ | ||
| "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=https://github.com/$GITHUB_REPOSITORY_OWNER") | ||
| echo "OIDC_TOKEN=$(echo $TOKEN | jq -r '.value')" >> $GITHUB_ENV | ||
| - name: Authenticate with Doppler | ||
| run: | | ||
| doppler oidc login --scope=. --identity=${{ vars.DOPPLER_SERVICE_IDENTITY_ID }} --token=$OIDC_TOKEN | ||
| doppler configure set project proofkit | ||
| doppler configure set config test | ||
| - name: Run Tests | ||
| run: pnpm test | ||
| - name: Run fmodata E2E Tests | ||
| run: pnpm --filter @proofkit/fmodata test:e2e | ||
| release: | ||
| name: Release | ||
| needs: [quality] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@v4 | ||
| - name: Enable Corepack | ||
| run: corepack enable | ||
| - name: Setup Node.js 22.x | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| cache: "pnpm" | ||
| registry-url: "https://registry.npmjs.org" | ||
| - name: Install Dependencies | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Create Release Pull Request or Publish to npm | ||
| id: changesets | ||
| uses: changesets/action@v1 | ||
| with: | ||
| publish: pnpm release | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
| NPM_CONFIG_PROVENANCE: true | ||