Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ concurrency:

permissions:
contents: write
pull-requests: write
id-token: write

jobs:
Expand All @@ -29,15 +28,20 @@ jobs:

- run: pnpm install --frozen-lockfile

- name: Version packages
run: pnpm changeset version

- run: pnpm run build

- name: Create Release PR or Publish
uses: changesets/action@v1
with:
version: pnpm changeset version
publish: pnpm changeset publish --provenance
title: "chore: version packages"
commit: "chore: version packages"
- name: Publish to npm
run: pnpm changeset publish --provenance
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Commit and push version changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore: version packages" || echo "No changes to commit"
git push