chore(deps): bump dependencies across all workspaces (#64) #311
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: ["dev"] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/dev' }} | |
| permissions: {} | |
| # You can leverage Vercel Remote Caching with Turbo to speed up your builds | |
| # @link https://turborepo.com/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: | |
| name: Release | |
| permissions: | |
| contents: write | |
| id-token: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup | |
| uses: ./tooling/github/setup | |
| - name: Create Release Pull Request | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| publish: pnpm run release | |
| version: pnpm run version | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Resolve Style Release | |
| id: style-release | |
| if: steps.changesets.outputs.hasChangesets == 'false' | |
| shell: bash | |
| run: | | |
| version="$(node -p "require('./apps/style/package.json').version")" | |
| tag="v${version}" | |
| echo "tag=${tag}" >> "$GITHUB_OUTPUT" | |
| if git rev-parse -q --verify "refs/tags/${tag}" >/dev/null; then | |
| echo "create=false" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "create=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Upload Release Asset | |
| if: steps.style-release.outputs.create == 'true' | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ steps.style-release.outputs.tag }} | |
| files: | | |
| apps/style/dist/** | |
| append_body: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |