Skip to content

Commit

Permalink
fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
petersalomonsen committed Jan 5, 2024
1 parent 83c68e6 commit 5ec7a58
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ jobs:
export VERSION=`npm view wasm-music dist-tags.latest`
export NEWVERSION=`node -p "require('./package.json').version"`
echo $VERSION $NEWVERSION
if [ "$VERSION" != "$NEWVERSION" ]
then
npm install
echo "creating pianorolldemo bundle"
npm run bundle-pianorolldemo
echo "publishing new version"
yarn install
echo "creating pianorolldemo bundle"
yarn bundle-pianorolldemo
echo "publishing new version"
if [[ "$VERSION" = "$NEWVERSION" || "$BRANCH" != "master" ]]; then
echo "version change is $VERSION->$NEWVERSION, branch is $BRANCH, not publishing, only dry-run"
npm publish --dry-run
else
npm publish
fi
env:
Expand Down

0 comments on commit 5ec7a58

Please sign in to comment.