Skip to content

Commit bfa681b

Browse files
committed
fix: post release vars and release asset
1 parent 37a87cc commit bfa681b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42-
run: npm run release
42+
run: npm run release:archive && npm run semantic-release

post-release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ if [[ $(echo $SECOND_TO_LAST_COMMIT_MSG | grep '^Merge .*alpha') ]]; then
2323
# we don't care about any alpha changes.
2424
git reset --hard release --
2525
# Force-push the alpha branch.
26-
git push "https://$GITHUB_TOKEN@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git" --force
26+
git push "https://$GITHUB_TOKEN@github.com/${GITHUB_REPOSITORY}.git" --force
2727
else
2828
echo '[newspack-scripts] Release was created from a different branch than the alpha branch (e.g. a hotfix branch).'
2929
echo '[newspack-scripts] Alpha branch will now be updated with the lastest changes from release.'
3030
git merge --no-ff release -m "chore(release): merge in release $LATEST_VERSION_TAG"
3131
if [[ $? == 0 ]]; then
32-
git push "https://$GITHUB_TOKEN@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git"
32+
git push "https://$GITHUB_TOKEN@github.com/${GITHUB_REPOSITORY}.git"
3333
else
3434
git merge --abort
3535
echo '[newspack-scripts] Post-release merge to alpha failed.'
@@ -55,7 +55,7 @@ git checkout trunk
5555
git merge --no-ff release -m "chore(release): merge in release $LATEST_VERSION_TAG"
5656
if [[ $? == 0 ]]; then
5757
echo '[newspack-scripts] Pushing updated trunk to origin.'
58-
git push "https://$GITHUB_TOKEN@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git"
58+
git push "https://$GITHUB_TOKEN@github.com/${GITHUB_REPOSITORY}.git"
5959
else
6060
git merge --abort
6161
echo '[newspack-scripts] Post-release merge to trunk failed.'

0 commit comments

Comments
 (0)