Skip to content

Correctly set dep of client-preset, fix publishing #14

Correctly set dep of client-preset, fix publishing

Correctly set dep of client-preset, fix publishing #14

Workflow file for this run

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@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
with:
standalone: true
cache: true
- name: Install Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
- name: Install packages
run: pnpm i
- name: Deploy snapshot
run: |
pnpm changeset version --snapshot alpha
pnpm build
pnpm changeset publish --governance --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