diff --git a/.github/workflows/branchOffCadenzaVersion.yml b/.github/workflows/branchOffCadenzaVersion.yml index b2c6ba81..7eed9aa8 100644 --- a/.github/workflows/branchOffCadenzaVersion.yml +++ b/.github/workflows/branchOffCadenzaVersion.yml @@ -58,6 +58,7 @@ jobs: - name: Commit and tag changes run: | git add "package.json" + git add "package-lock.json" git commit -m "chore: branch off main as ${{ env.BRANCH_NAME }} and bump main version to ${{ env.NEW_VERSION }}" - name: Push changes diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abfc8eb4..0cb3d92c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,9 +53,10 @@ jobs: - name: Commit release and tag it run: | git add "package.json" + git add "package-lock.json" git add "CHANGELOG.md" git commit -m "chore: release ${{ env.RELEASE_VERSION }}" - git tag ${{ env.RELEASE_VERSION }} + git tag v${{ env.RELEASE_VERSION }} - name: Push changes env: @@ -73,7 +74,7 @@ jobs: - name: Update GitHub release documentation uses: softprops/action-gh-release@v1 with: - tag_name: ${{ env.RELEASE_VERSION }} + tag_name: v${{ env.RELEASE_VERSION }} body: ${{ steps.get-changelog.outputs.changelog }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -81,7 +82,7 @@ jobs: - name: Publish npm package run: | npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" - npm publish --verbose --access=public --tag=${{ env.RELEASE_TAG }} + npm publish --verbose --access=public --tag=v${{ env.RELEASE_TAG }} env: NPM_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} @@ -94,6 +95,7 @@ jobs: - name: Commit version bump run: | git add "package.json" + git add "package-lock.json" git commit -m "chore: bump up version to ${{ env.DEV_VERSION }}" - name: Push changes