chore: release 1.0.8 (#7) #7
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] | |
| paths: | |
| - '.changeset/**' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| # optional: include package manifests if you want release to run when versions are bumped | |
| - 'cli/package.json' | |
| workflow_dispatch: | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js and pnpm | |
| uses: ./.github/actions/setup-node-pnpm | |
| - name: Create Release PR or Publish | |
| uses: changesets/action@v1 | |
| with: | |
| # use git-cli so symlinks in the repo don't break GitHub API commits | |
| commitMode: git-cli | |
| setupGitUser: true | |
| commit: "chore: version packages" | |
| title: "chore: version packages" | |
| # calculate version + generate changelog + update lockfile (very important) | |
| version: pnpm version-packages | |
| # build before publish (to avoid empty dist) | |
| # then publish (you currently use pnpm publish -r) | |
| # then tag (to allow action to push tags + create GitHub Releases) | |
| publish: bash ./scripts/release-publish.sh | |
| # explicitly enable GitHub Releases | |
| createGithubReleases: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: true | |
| HUSKY: 0 |