Release #1
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 Dry Run | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| dry-run: | |
| runs-on: blacksmith-2vcpu-ubuntu-2404 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@ac6db6d3c1f721f886538a378a2d73e85697340a # v6 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| registry-url: https://registry.npmjs.org/ | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm build | |
| - run: pnpm test | |
| - run: pnpm test:coverage | |
| - name: Run npm audit | |
| run: pnpm audit --audit-level=moderate | |
| continue-on-error: true | |
| - name: Verify packages install from tarballs | |
| run: node scripts/tarball-smoke.mjs | |
| - name: Publish dry-run | |
| run: | | |
| for pkg in packages/*; do | |
| [ -f "$pkg/package.json" ] || continue | |
| echo "::group::npm publish --dry-run for $pkg" | |
| (cd "$pkg" && npm publish --dry-run) | |
| echo "::endgroup::" | |
| done | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |