This repository has been archived by the owner on Aug 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from theodo/fix-release-script-2
fix: fix release script (2)
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,17 +20,18 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "$GITHUB_ACTOR" | ||
git stash | ||
# tagging is re-done by lerna in next steps | ||
git push --delete origin ${{ github.event.release.tag_name }} | ||
git tag -d ${{ github.event.release.tag_name }} | ||
- name: update version | ||
run: yarn lerna version ${{ github.event.release.tag_name }} --yes | ||
- name: Update yarn.lock with new version | ||
run: | | ||
export YARN_ENABLE_IMMUTABLE_INSTALLS=false | ||
yarn | ||
git add yarn.lock | ||
git commit --amend --no-edit | ||
git push origin --force | ||
git commit -m "${{ github.event.release.tag_name }} release" | ||
git push | ||
# - uses: JS-DevTools/npm-publish@v1 | ||
# with: | ||
# token: ${{ secrets.NPM_TOKEN }} | ||
|