Skip to content

Commit 06bb956

Browse files
authored
Merge pull request #419 from toss/ci/changesets
chore: add changeset scripts and update release workflow for versioning and publishing
2 parents 264f493 + e929c3b commit 06bb956

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,14 @@ jobs:
2929
run: yarn test
3030
- name: Build Package
3131
run: yarn build
32-
- name: Release or Versioning
33-
uses: cometkim/yarn-changeset-action@v1
32+
33+
- name: Create Changesets Pull Request or Publish to NPM
34+
id: changesets
35+
uses: changesets/action@v1
3436
with:
35-
autoPublish: true
37+
title: 'chore: version packages'
38+
commit: 'chore: version packages'
39+
version: yarn changeset:version
40+
publish: yarn changeset:publish
3641
env:
3742
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@
9595
],
9696
"scripts": {
9797
"check": "yarn typecheck && yarn lint && yarn test",
98+
"changeset:version": "yarn changeset version",
99+
"changeset:publish": "yarn changeset publish",
98100
"lint": "yarn workspaces foreach -ptR --from '@h6s/*' run lint",
99101
"test": "yarn workspaces foreach -ptR --from '@h6s/*' run test",
100102
"typecheck": "yarn workspaces foreach -ptR --from '@h6s/*' run typecheck",

0 commit comments

Comments
 (0)