workflows: run prettier as part of changeset versioning

This commit is contained in:
Patrik Oldsberg
2020-11-03 13:56:26 +01:00
parent 289d9ef43e
commit 1914a3e88b
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -15,5 +15,8 @@ jobs:
run: yarn --frozen-lockfile
- name: Create Release Pull Request
uses: changesets/action@master
with:
# Calls out to `changeset version`, but also runs prettier
version: yarn version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+2 -1
View File
@@ -28,7 +28,8 @@
"prettier:check": "prettier --check .",
"lerna": "lerna",
"storybook": "yarn workspace storybook start",
"build-storybook": "yarn workspace storybook build-storybook"
"build-storybook": "yarn workspace storybook build-storybook",
"version": "changeset version && yarn prettier --write '{packages,plugins}/*/{package.json,CHANGELOG.md}'"
},
"workspaces": {
"packages": [