Skip to content

Commit

Permalink
prevent git commit during versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Nov 14, 2023
1 parent 2de33aa commit 3d4d202
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/create-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ jobs:
node-version: "14.19.0"
- run: npm ci
- run: npm run build
- run: |
- name: Compute pre-release version
run: |
CURRENT_VERSION=$(grep -o '\"version\": *\"[^\"]*\"' package.json | awk -F'\"' '{print $4}')
BUILD_VERSION="$CURRENT_VERSION-alpha.$(date +%Y%m%d)"
echo "BUILD_VERSION=$BUILD_VERSION" >> $GITHUB_ENV
npm version "$BUILD_VERSION"
- run: npm version "$BUILD_VERSION" --no-git-tag-version
- run: npm pack

# upload the .tgz as a build artifact
Expand Down

0 comments on commit 3d4d202

Please sign in to comment.