diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 14c99e2..5422ac0 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -41,17 +41,17 @@ jobs: run: npm run build - name: Test run: npm run test - # - name: Env - # id: env - # run: | - # LATEST=`npm view . version` - # CURRENT=`cat package.json | jq -r .version` - # if [ "$LATEST" != "$CURRENT" ] - # then - # echo ::set-output name=VERSION::$CURRENT - # echo ::set-output name=SHOULD_RELEASE::true - # echo current version is $CURRENT - # fi + - name: Env + id: env + run: | + LATEST=`npm view . version` + CURRENT=`cat package.json | jq -r .version` + if [ "$LATEST" != "$CURRENT" ] + then + echo ::set-output name=VERSION::$CURRENT + echo ::set-output name=SHOULD_RELEASE::true + echo current version is $CURRENT + fi - name: Fix Coverage Paths working-directory: ./coverage run: | @@ -72,9 +72,8 @@ jobs: personal_token: ${{ secrets.ACCESS_TOKEN }} publish_dir: ./docs/dist - name: Release - # if: github.event_name == 'push' && steps.env.outputs.SHOULD_RELEASE == 'true' - # run: npx release-it --ci --verbose --disable-metrics --increment=${{steps.env.outputs.VERSION}} - run: npx release-it --ci --verbose --disable-metrics --increment=0.0.1 + if: github.event_name == 'push' && steps.env.outputs.SHOULD_RELEASE == 'true' + run: npx release-it --ci --verbose --disable-metrics --increment=${{steps.env.outputs.VERSION}} env: GIT_AUTHOR_NAME: Github Action GIT_AUTHOR_EMAIL: action@github.com diff --git a/package.json b/package.json index d97897d..905a3b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "modkit-loader", - "version": "0.0.1", + "version": "0.0.2", "description": "Runtime Module Loader", "main": "dist/commonjs/index.js", "typings": "dist/types/index.d.ts",