diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30a8d5c965..c37cbfd199 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,3 +25,26 @@ jobs: run: pnpm install --no-frozen-lockfile - name: Lint run: pnpm lint + + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Collect versions + run: | + echo "nodejs_version=$(cat .tool-versions | grep 'nodejs' | cut -d ' ' -f 2)" >> "$GITHUB_ENV" + echo "pnpm_version=$(cat .tool-versions | grep 'pnpm' | cut -d ' ' -f 2)" >> "$GITHUB_ENV" + - uses: pnpm/action-setup@v4 + with: + version: ${{ env.pnpm_version }} + - uses: actions/setup-node@v4 + with: + node-version: ${{ env.nodejs_version }} + cache: pnpm + - name: Install dependencies + run: pnpm install --no-frozen-lockfile + - name: Build + run: pnpm build