Correctly set dep of client-preset, fix publishing #18
Workflow file for this run
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: | |
| pull_request: # for snapshot release | |
| branches: | |
| - master | |
| push: # for stable release | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| release-snapshot: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| id-token: write # allows OIDC publishing | |
| pull-requests: write # allows creating comment with alpha versions | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v6.0.8 | |
| with: | |
| standalone: true | |
| cache: true | |
| - name: Install Node | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24 | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install packages | |
| run: pnpm i | |
| - name: Deploy snapshot | |
| run: | | |
| pnpm changeset version --snapshot alpha | |
| pnpm build | |
| pnpm changeset publish --tag alpha --no-git-tag | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@1c4632ccc198d4c9b34d9e6b3d556c6f245b4e69 # main | |
| # permissions: | |
| # id-token: write # allows OIDC publishing | |
| # pull-requests: write # allows creating comment with alpha versions | |
| # with: | |
| # npmTag: alpha | |
| # packageManager: pnpm | |
| # buildScript: build | |
| # nodeVersion: 24 | |
| # secrets: | |
| # githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| # npmToken: FILLER | |
| release-stable: | |
| if: github.event_name == 'push' | |
| uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@f4eea983237a44bb0ca19c3348dacbfdfcdbec23 # main | |
| permissions: | |
| id-token: write # allows OIDC publishing | |
| pull-requests: write # allows creating Version Packages PR | |
| contents: write # allows modifying changeset files | |
| with: | |
| packageManager: pnpm | |
| releaseScript: release | |
| nodeVersion: 24 | |
| secrets: | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| npmToken: FILLER |