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
9 changes: 8 additions & 1 deletion .github/workflows/build-test-publish-superscript-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,14 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
cd wasm
npm publish --access public
# 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
echo "Published successfully with 'npm publish'"
else
echo "'npm publish' failed, retrying with --access public..."
npm publish --access public
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Loading