File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
2727else
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
5555git merge --no-ff release -m " chore(release): merge in release $LATEST_VERSION_TAG "
5656if [[ $? == 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"
5959else
6060 git merge --abort
6161 echo ' [newspack-scripts] Post-release merge to trunk failed.'
You can’t perform that action at this time.
0 commit comments