Skip to content

Commit 4e07e8d

Browse files
committed
fix: use correct bundle name in publish workflow
1 parent f91e5f5 commit 4e07e8d

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
with:
4343
upload_url: ${{ steps.release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
44-
asset_path: dist/media-overlay-library.min.js
45-
asset_name: media-overlay-library.min.js
44+
asset_path: dist/media-stream-library.min.js
45+
asset_name: media-stream-library.min.js
4646
asset_content_type: application/javascript
4747
- name: Upload changelog
4848
uses: actions/[email protected]

sbin/release.sh

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/usr/bin/env bash
22

3-
# Generate new commit
43
if [[ ! -d .yarn/versions ]]; then
5-
yarn version patch
4+
# Update pach number if no versions to be applied
5+
yarn version patch --deferred
66
fi
7+
8+
# Apply all deferred version upgrades
79
yarn version apply --all
8-
NEW_VERSION=$(jq -r .version package.json)
910

10-
# Update changelog (requires tag)
11-
bash sbin/changelog.sh -u $NEW_VERSION
11+
# Update changelog and commit new version
12+
NEW_VERSION="v$(jq -r .version package.json)"
13+
bash sbin/changelog.sh -u ${NEW_VERSION}
1214
git add -u
13-
git commit -m "v$NEW_VERSION"
14-
git tag -a -m "v$NEW_VERSION" "v$NEW_VERSION"
15+
git commit -m ${NEW_VERSION}
16+
git tag -a -m ${NEW_VERSION} ${NEW_VERSION}

0 commit comments

Comments
 (0)