From a423352bc4facd823b7eca03a9bbadc396c48f23 Mon Sep 17 00:00:00 2001 From: "Shah, Kevin" Date: Tue, 27 Aug 2024 12:10:39 -0400 Subject: [PATCH] fix: Added verified action for file exists check --- .github/workflows/release-github.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index a71faaa72..2a7c647df 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -92,11 +92,19 @@ jobs: npm version prerelease --preid $PRERELEASE --git-tag-version false npm version prerelease --preid $PRERELEASE --workspaces --git-tag-version false npm run dist + # - name: Check if semantic-release created a build + # id: check_build + # uses: andstor/file-existence-action@v2 + # with: + # files: './src/sdks/core/dist/lib/firebolt.mjs' - name: Check if semantic-release created a build id: check_build - uses: andstor/file-existence-action@v2 + uses: actions/github-script@v6 with: - files: './src/sdks/core/dist/lib/firebolt.mjs' + script: | + const fs = require('fs'); + const path = './src/sdks/core/dist/lib/firebolt.mjs'; + return fs.existsSync(path); - name: Get version from package.json run: | RELEASE_VERSION=$(node -p "require('./package.json').version")