Skip to content

Commit

Permalink
fix: ci tag
Browse files Browse the repository at this point in the history
  • Loading branch information
brianzinn committed Apr 11, 2022
1 parent 8560ccc commit 7b72e9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 7b72e9b

Please sign in to comment.