Merge pull request #149 from anthonyshew/fix/turbo-config-optimization #135
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 | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| id-token: write | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.7.0 | |
| run_install: false | |
| - name: Setup Node.js 22.20.0 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.20.0 | |
| registry-url: "https://registry.npmjs.org" | |
| cache: "pnpm" | |
| - name: Update npm for OIDC support | |
| run: npm install -g npm@latest | |
| - name: Install NPM dependencies | |
| run: pnpm install | |
| - name: Build Package | |
| run: pnpm build:react-wheel-picker | |
| - name: Create release PR or publish to NPM | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| title: "chore(release): version packages" | |
| commit: "chore(release): version packages" | |
| version: node .github/changeset-version.mjs | |
| publish: npx changeset publish | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NODE_ENV: "production" |