Skip to content

Commit

Permalink
Fix release pipeline (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju authored Sep 8, 2024
1 parent 08d94a1 commit e9b5227
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
configFilePath: gitversion.yml

# Setup Node.js environment
- name: Use Node.js
Expand Down Expand Up @@ -71,7 +74,7 @@ jobs:
VERSION=${{ steps.gitversion.outputs.semVer }}
echo "Updating package.json version to $VERSION"
npm version $VERSION --no-git-tag-version
git add package.json
git add package.json package-lock.json
# Commit and push changes if there are any
- name: Commit and push if changed
Expand Down
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function run() {
} catch (error) {
if (error instanceof Error) {
if (!error.message.startsWith('Mock')) {
console.error('Error in run function: ', error);
console.error('Error in run function:', error);
}

core.setFailed(error.message);
Expand Down

0 comments on commit e9b5227

Please sign in to comment.