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
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ jobs:
- name: Publish the NPM package
run: |
cd js
# npm 11 refuses a dry run for a version that is already on npm, and between
# releases package.json holds the last released version: nothing to check then
VERSION=$(tar -xOzf *.tgz package/package.json | node -p "JSON.parse(require('fs').readFileSync(0, 'utf8')).version")
if npm view "jupyter-vuetify@$VERSION" version > /dev/null 2>&1; then
echo "jupyter-vuetify $VERSION is already on npm, so the dry run is skipped until the version bump"
exit 0
fi
echo $PRE_RELEASE
if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
npm publish --dry-run --tag ${TAG} --access public *.tgz
Expand Down