Skip to content

Commit

Permalink
Refactor npm commands in workflows for consistency and improved clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-balades committed Feb 3, 2025
1 parent b1b83ae commit 42dbff2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ jobs:
run: |
echo "$(pwd)"
ls .
echo "version=$(npm run surfer get version | xargs)" >> $GITHUB_OUTPUT
if [[ $(npm run surfer get version | xargs) == ${{ needs.build-data.outputs.version }} ]]; then
echo "version=$(npm run surfer -- get version | xargs)" >> $GITHUB_OUTPUT
if [[ $(npm run surfer -- get version | xargs) == ${{ needs.build-data.outputs.version }} ]]; then
echo ">>> Version matches"
else
echo ">>> Version mismatch"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ jobs:
export ZEN_CROSS_COMPILING=1
export ZEN_RELEASE=1
npm run package
mv ./dist/zen-$(npm run surfer get version | xargs).en-US.win64${{ matrix.arch == 'aarch64' && '-aarch64' || '' }}.zip zen.win64.zip
mv ./dist/zen-$(npm run surfer -- get version | xargs).en-US.win64${{ matrix.arch == 'aarch64' && '-aarch64' || '' }}.zip zen.win64.zip
ls ./dist
ls .
Expand Down
2 changes: 1 addition & 1 deletion build/winsign/sign.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function SignAndPackage($name) {
}

echo "Compat Mode? $env:SURFER_COMPAT"
npm run surfer package --verbose
npm run package -- --verbose

# In the release script, we do the following:
# tar -xvf .github/workflows/object/windows-x64-signed-x86_64.tar.gz -C windows-x64-signed-x86_64
Expand Down

0 comments on commit 42dbff2

Please sign in to comment.