fix: Fix package dependencies that were missing #1126
Workflow file for this run
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: build | |
| on: [push] | |
| permissions: | |
| contents: write # Create releases and tags | |
| pull-requests: write # Comment on PRs with release info | |
| packages: write # Publish to GitHub Packages | |
| jobs: | |
| build-linting: | |
| uses: ./.github/workflows/linting.yml | |
| release: | |
| needs: [build-linting] | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false # https://stackoverflow.com/questions/74744498/github-pushing-to-protected-branches-with-fine-grained-token | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '21' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| cache: true | |
| - name: Setup npm for GitHub Packages | |
| run: | | |
| echo -e "\n//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc | |
| echo -e "\n//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> ~/.npmrc | |
| echo -e "\n//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc | |
| echo -e "\n//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build all tools | |
| run: pnpm -r --filter './tools/**' run build | |
| - name: Git reset .npmrc | |
| run: git checkout .npmrc | |
| - name: Create Release | |
| env: | |
| GITHUB_TOKEN: ${{ github.ref == 'refs/heads/main' && secrets.NEVERMORE_CI_PAT || secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: npx auto shipit | |
| - name: Upload lerna logs | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lerna-debug.log | |
| path: lerna-debug.log |