ci: upgrade npm to latest for oidc trusted publishing #29
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: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: release | |
| cancel-in-progress: false | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: https://registry.npmjs.org | |
| - name: Upgrade npm for OIDC trusted publishing | |
| run: npm install -g npm@latest | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install --frozen-lockfile | |
| - name: Build shared | |
| run: cd packages/shared && bunx tsc | |
| - run: bun install --frozen-lockfile | |
| - name: Build core | |
| run: cd packages/core && bunx tsup | |
| - run: bun install --frozen-lockfile | |
| - name: Build cli | |
| run: cd apps/cli && bunx tsup | |
| - run: bun install --frozen-lockfile | |
| - name: Create release pull request or publish | |
| uses: changesets/action@v1 | |
| with: | |
| publish: npx -y changeset publish | |
| version: npx -y changeset version | |
| commit: "chore: version packages" | |
| title: "chore: version packages" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |