Merge pull request #1 from qxprakash/changeset-release/main #2
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: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| # Allow yarn to make changes during release | |
| - run: corepack yarn config set enableHardenedMode false | |
| - run: corepack yarn --mode=update-lockfile | |
| - name: Install dependencies | |
| run: corepack yarn install --immutable | |
| - name: Build | |
| run: corepack yarn build | |
| - name: Create Release Pull Request or Publish | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| version: corepack yarn run version | |
| publish: corepack yarn run release | |
| commit: '[ci] release' | |
| title: '[ci] release' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |