We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f621a7 commit 1d80a78Copy full SHA for 1d80a78
.github/workflows/publish.yml
@@ -26,9 +26,14 @@ jobs:
26
env:
27
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29
+ # On success, semantic-release will update the version and publish,
30
+ # triggering the postversion script that'll update the loader's version
31
+ # as well. If nothing was published, the version will still be '0.0.0'.
32
run: |
33
node node_modules/semantic-release/bin/semantic-release.js --unstable
34
cd lib/loader
- npm config set "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
- npm publish --access public
35
+ if [ $(node -pe "require('./package.json').version") != "0.0.0" ]; then
36
+ npm config set "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
37
+ npm publish --access public
38
+ fi
39
cd ../..
0 commit comments