[ci] release (#162) #157
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 | |
| jobs: | |
| ci: | |
| uses: ./.github/workflows/ci.yml | |
| changelog: | |
| name: Changelog PR or Release | |
| needs: ci | |
| if: ${{ github.repository_owner == 'lilnasy' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # to allow the worker to identify itself to NPM | |
| contents: write # to allow tagging and creating releases | |
| pull-requests: write # to allow creating release PRs | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Init submodules | |
| run: sh .github/workflows/init-submodules.sh | |
| - name: Build | |
| run: pnpm --filter @emotion-extract/vite build | |
| - name: Create Release Pull Request or Publish | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| version: sh .github/workflows/version.sh | |
| publish: pnpm exec changeset publish | |
| commit: "[ci] release" | |
| title: "[ci] release" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |