From e9b5227217643441cf93002759b22f19cb942993 Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Sun, 8 Sep 2024 21:16:24 +0200 Subject: [PATCH] Fix release pipeline (#27) --- .github/workflows/build-push-release.yml | 5 ++++- src/action.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-push-release.yml b/.github/workflows/build-push-release.yml index 04d86f7..4667082 100644 --- a/.github/workflows/build-push-release.yml +++ b/.github/workflows/build-push-release.yml @@ -32,6 +32,9 @@ jobs: - name: Determine Version id: gitversion uses: gittools/actions/gitversion/execute@v3.0.0 + with: + useConfigFile: true + configFilePath: gitversion.yml # Setup Node.js environment - name: Use Node.js @@ -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 diff --git a/src/action.ts b/src/action.ts index 66d001c..f0c4af5 100644 --- a/src/action.ts +++ b/src/action.ts @@ -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);