diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 632c947..b838e22 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -36,7 +36,7 @@ jobs: SNAPSHOT: ${{ github.event.inputs.snapshotVersion }} run: | echo $NEW_TAG | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' - echo $NEW_TAG_SNAPSHOT | grep -E '^[0-9]+\.[0-9]+\.[0-9]+-SNAPSHOT$' + echo $SNAPSHOT | grep -E '^[0-9]+\.[0-9]+\.[0-9]+-SNAPSHOT$' - name: 'Verify version is not already used as a git tag' env: NEW_TAG: ${{ github.event.inputs.releaseVersion }} @@ -69,6 +69,8 @@ jobs: git merge main -m "Merge main to develop [skip ci]" npm version $SNAPSHOT sed -i "s#Version: [0-9]+\.[0-9]+\.[0-9]+#Version: $SNAPSHOT#g" README.md + git add . + git commit -m "Version $SNAPSHOT [skip ci]" git push - name: 'Create the github release' uses: softprops/action-gh-release@v1