Skip to content

Commit

Permalink
fix: automated releases
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmichalina committed Jul 22, 2020
1 parent d6352dc commit e0e6fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- run: npm test
- run: npm run rollup
- run: npm run cli
- run: node_modules/.bin/semantic-release
- id: get_app_version
run: echo "::set-output name=app_version::$(node_modules/.bin/semantic-release --dry-run | perl -ne '/(?<=The next release version is ).*(0|(?:[1-9]\d*))(?:\.(0|(?:[1-9]\d*))(?:\.(0|(?:[1-9]\d*)))?(?:\-([\w][\w\.\-_]*))?)+/gi && print $&' | rev | cut -c1- | rev)"

- run: node_modules/.bin/semantic-release

publish_github:
runs-on: ubuntu-latest
if: ${{ needs.build.outputs.app_version }}
Expand Down

0 comments on commit e0e6fc5

Please sign in to comment.