Skip to content

Commit

Permalink
publish fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tajo committed Jul 5, 2023
1 parent 266ee62 commit aa773ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Bump versions
shell: bash
run: |
./scripts/bump-all.sh
- name: Publish npm packages
run: |
npm publish --workspaces --access public
Expand Down
5 changes: 4 additions & 1 deletion scripts/bump-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
set -eu

function bumpNpm {
(cd $1 && yarn version --no-git-tag-version --patch)
(cd $1 && yarn version --patch)
}

for PKG in ./packages/fusion; do
bumpNpm $PKG
git commit -a -m "Bump npm package: ${PKG}" || true
done

git push
git push --tags

0 comments on commit aa773ea

Please sign in to comment.