From 7b72e9b7bbd23be944006019c2d2778067f33789 Mon Sep 17 00:00:00 2001 From: Brian Zinn Date: Mon, 11 Apr 2022 11:26:12 -0700 Subject: [PATCH] fix: ci tag --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 788e4ff2..387b2b03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,7 @@ on: # push: # branches: [ master ] # NOTE: workspaces have a bunch of issues with npm version! 'npm version' doesn't add a commit + tag :( +# once there are multiple packages can revisit the step that commits. jobs: release: @@ -40,11 +41,11 @@ jobs: run: | npm version ${{ github.event.inputs.npmVersion }} -w packages/react-babylonjs git status - PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]') + PACKAGE_VERSION=$(cat packages/react-babylonjs/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]') git add packages/react-babylonjs/package.json git commit -m "release ${PACKAGE_VERSION} :package:${{ github.event.inputs.comment }}" git status - git tag ${PACKAGE_VERSION} + git tag v${PACKAGE_VERSION} git push --follow-tags git status sleep 1m