chore: release v2.0.9 #10
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
| # .github/workflows/release.yml | |
| name: Release | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 18.x | |
| - run: npx changelogithub | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| npm: | |
| runs-on: ubuntu-latest | |
| environment: npm | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup (Install node & pnpm) | |
| uses: ./.github/actions/setup | |
| - name: Update npm (Trusted Publishers requires npm >= 11.5.1) | |
| # Workaround for npm/cli#9151: Node 22's bundled npm 10.9.7 is broken | |
| # (missing promise-retry). Pin to 11.11.0 which installs successfully. | |
| run: npm install -g npm@11.11.0 | |
| - name: Build Packages | |
| run: pnpm build | |
| # Must publish from repo root for provenance to work with OIDC | |
| - name: Publish to npm | |
| run: npm publish ./packages/core --access public --provenance |