Skip to content

Commit

Permalink
Ci/config to bump version (#5)
Browse files Browse the repository at this point in the history
* Bump version automatically when publishing

* prevent infinite loop when creating version

---------

Co-authored-by: Rodolfo <[email protected]>
  • Loading branch information
ladeirarodolfo and Rodolfo authored Dec 4, 2023
1 parent 5a33600 commit 28391d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
push:
branches:
- main
paths-ignore:
- lerna.json

jobs:
publish-gpr:
Expand All @@ -21,8 +23,9 @@ jobs:
node-version: 18
registry-url: https://npm.pkg.github.com/
scope: radicalimaging
- run: lerna version patch --yes
- run: yarn install --frozen-lockfile
- run: yarn build
- run: lerna publish --loglevel verbose --ignore-scripts --yes --canary --registry "https://npm.pkg.github.com/"
- run: lerna publish --loglevel verbose --ignore-scripts --yes --canary --registry "https://npm.pkg.github.com/" --force-publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 28391d1

Please sign in to comment.