Skip to content

Commit e6a1bbf

Browse files
committed
update ci
1 parent c5a7c36 commit e6a1bbf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/release.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ jobs:
2121
- name: Install Dependencies
2222
run: npm install
2323

24-
- name: Build
25-
run: npm run build
26-
27-
- name: Create Release Pull Request
24+
- name: Create Release Pull Request or publish to npm
2825
id: changesets
2926
uses: changesets/action@v1
3027
with:
31-
# This expects you to have a script called release which does a build for your packages and calls changeset publish
28+
version: npm run version
3229
publish: npm run publish
30+
commit: "[ci] release"
31+
title: "[ci] release"
3332
env:
3433
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3534
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"build": "npm run build --workspaces --if-present",
55
"test": "npm run test --workspaces --if-present",
66
"publish": "npm run build && changeset publish",
7-
"make:toc": "markdown-toc -i README.md"
7+
"make:toc": "markdown-toc -i README.md",
8+
"format:code": "prettier -w .",
9+
"version": "changeset version && npm install && npm run format:code"
810
},
911
"workspaces": [
1012
"packages/core",

0 commit comments

Comments
 (0)