Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-test-publish-superscript-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:

# Version management and publishing
- name: Check for version changes
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
id: version_check
run: |
cd wasm
Expand All @@ -159,17 +159,17 @@ jobs:
fi

- name: Publish to NPM
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
run: |
# Trusted publishing needs npm 11.5.1 or later.
npm install -g npm@^11.5.1
cd wasm
# Try a normal publish first; if it fails (e.g. first-time publish of a
# scoped package), retry with --access public.
if npm publish; then
if npm publish --loglevel verbose; then
echo "Published successfully with 'npm publish'"
else
echo "'npm publish' failed, retrying with --access public..."
npm publish --access public
npm publish --access public --loglevel verbose
fi

Loading