Skip to content

Commit

Permalink
Merge pull request #6 from lottie/mf/fix-release
Browse files Browse the repository at this point in the history
ci: fix release script
  • Loading branch information
Aidosmf authored May 24, 2024
2 parents adbfa4d + 96c8c7b commit 54ee232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build
run: yarn build
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
Expand All @@ -48,8 +43,7 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
version: yarn release:version
publish: yarn release:publish
version: yarn release
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"changelog": "changeset add",
"changelog:check": "changeset status --since=main",
"changelog:version": "changeset version",
"changelog:publish": "changeset publish"
"changelog:publish": "yarn build && changeset publish",
"release": "yarn changelog:version && yarn changelog:publish"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 54ee232

Please sign in to comment.