Merge pull request #46 from tiesen243/changeset-release/main #87
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 | |
| paths: | |
| - '.changeset/**' | |
| - '.github/workflows/release.yml' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/dev' }} | |
| # You can leverage Vercel Remote Caching with Turbo to speed up your builds | |
| # @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds | |
| env: | |
| FORCE_COLOR: 3 | |
| TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| jobs: | |
| release: | |
| if: ${{ github.repository_owner == 'tiesen243' }} | |
| name: Create a PR for release workflow | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup | |
| uses: ./tools/github/setup | |
| - name: Install NPM Dependencies | |
| run: bun ci | |
| - name: Build the package | |
| run: bun --filter create-yuki-stack build | |
| - name: Create Version PR | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| commit: 'chore(release): version packages' | |
| title: 'chore(release): version packages' | |
| version: bun tools/github/scripts/changeset-version.js | |
| publish: bun run changeset publish | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NODE_ENV: 'production' |