diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 166ecb4..1c2f357 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}