Skip to content

Commit

Permalink
fix: Added verified action for file exists check
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinshahfws committed Aug 27, 2024
1 parent d910e8c commit a423352
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a423352

Please sign in to comment.