Correctly set dep of client-preset, fix publishing #22
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: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - run: pnpm install --frozen-lockfile | |
| - name: Version snapshot | |
| env: | |
| SNAPSHOT_TAG: alpha | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| pnpm changeset version --snapshot "$SNAPSHOT_TAG" | |
| - name: Build | |
| run: pnpm build | |
| - name: Publish snapshot | |
| env: | |
| SNAPSHOT_TAG: alpha | |
| run: npx changeset publish --no-git-tag --tag "$SNAPSHOT_TAG" | |
| # 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 |