Skip to content

Commit 6fee9c5

Browse files
marklundinCopilot
andauthored
Updates Changeset workflow (#210)
* chore: update GitHub Actions workflow and package.json - Added permissions for write access to contents and pull requests in the changesets workflow. - Updated the fetch depth for the checkout step to ensure all history is available. - Modified the publish command to use `pnpm -w changeset publish` and enabled GitHub releases. - Cleaned up the package.json by removing the redundant `ci:publish` script. * Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 4c3026e commit 6fee9c5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/changesets.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
812
env:
913
CI: true
1014

@@ -15,6 +19,8 @@ jobs:
1519
steps:
1620
- name: Checkout code repository
1721
uses: actions/checkout@v5
22+
with:
23+
fetch-depth: 0
1824

1925
- name: Setup pnpm
2026
uses: pnpm/action-setup@v4
@@ -33,7 +39,8 @@ jobs:
3339
with:
3440
commit: "chore: update versions"
3541
title: "chore: update versions"
36-
publish: pnpm ci:publish
42+
publish: pnpm -w changeset publish
43+
createGithubReleases: true
3744
env:
3845
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3946
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"build": "pnpm run build:lib && pnpm run build:blocks && pnpm run build:docs",
2020
"start": "pnpm --filter docs run start",
2121
"lint": "pnpm -r exec eslint .",
22-
"test": "pnpm -r run test",
23-
"ci:publish": "pnpm publish -r"
22+
"test": "pnpm -r run test"
2423
},
2524
"devDependencies": {
2625
"@changesets/cli": "2.29.5",

0 commit comments

Comments
 (0)