-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
56 additions
and
56 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 |
---|---|---|
|
@@ -48,59 +48,59 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: 'release/${{matrix.version}}' | ||
force: false | ||
- name: Patch versioning | ||
if: ${{matrix.version != '1.2'}} | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
npx lerna version patch --no-push --yes | ||
- name: Patch versioning | ||
if: ${{matrix.version == '1.2'}} | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
npx lerna version prerelease --no-push --yes | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: 'release/${{matrix.version}}' | ||
force: false | ||
- name: Delete tag | ||
continue-on-error: true | ||
run: | | ||
git push --delete origin v${{fromJson(steps.lerna.outputs.lernaJson).version}} | ||
- name: Read Lerna | ||
id: lerna | ||
run: | | ||
content=`cat ./lerna.json | tr -d "\n"` | ||
echo "::set-output name=lernaJson::$content" | ||
- name: Create PreRelease | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GIT_PUSH_TOKEN }} | ||
with: | ||
body: 'You can find more details about the changes here: https://github.com/leanupjs/leanup/blob/master/CHANGELOG.md#${{fromJson(steps.lerna.outputs.lernaJson).version}}' | ||
draft: false | ||
prerelease: true | ||
commitish: 'release/${{matrix.version}}' | ||
release_name: Release ${{fromJson(steps.lerna.outputs.lernaJson).version}} | ||
tag_name: ${{fromJson(steps.lerna.outputs.lernaJson).version}} | ||
- name: Generate changelogs | ||
run: | | ||
npm i auto-changelog --no-save | ||
npx auto-changelog --release-summary --tag-pattern '^${{matrix.version}}.\d+' -o docs/changelog/index.md | ||
npx auto-changelog --release-summary | ||
- name: Commit changelogs | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
git status | ||
git commit -m "Update changelogs" | ||
- name: Push changelogs | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GIT_PUSH_TOKEN }} | ||
branch: 'release/${{matrix.version}}' | ||
force: false | ||
# - name: Patch versioning | ||
# if: ${{matrix.version != '1.2'}} | ||
# run: | | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "GitHub Action" | ||
# npx lerna version patch --no-push --yes | ||
# - name: Patch versioning | ||
# if: ${{matrix.version == '1.2'}} | ||
# run: | | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "GitHub Action" | ||
# npx lerna version prerelease --no-push --yes | ||
# - name: Push changes | ||
# uses: ad-m/github-push-action@master | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# branch: 'release/${{matrix.version}}' | ||
# force: false | ||
# - name: Delete tag | ||
# continue-on-error: true | ||
# run: | | ||
# git push --delete origin v${{fromJson(steps.lerna.outputs.lernaJson).version}} | ||
# - name: Read Lerna | ||
# id: lerna | ||
# run: | | ||
# content=`cat ./lerna.json | tr -d "\n"` | ||
# echo "::set-output name=lernaJson::$content" | ||
# - name: Create PreRelease | ||
# uses: actions/create-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GIT_PUSH_TOKEN }} | ||
# with: | ||
# body: 'You can find more details about the changes here: https://github.com/leanupjs/leanup/blob/master/CHANGELOG.md#${{fromJson(steps.lerna.outputs.lernaJson).version}}' | ||
# draft: false | ||
# prerelease: true | ||
# commitish: 'release/${{matrix.version}}' | ||
# release_name: Release ${{fromJson(steps.lerna.outputs.lernaJson).version}} | ||
# tag_name: ${{fromJson(steps.lerna.outputs.lernaJson).version}} | ||
# - name: Generate changelogs | ||
# run: | | ||
# npm i auto-changelog --no-save | ||
# npx auto-changelog --release-summary --tag-pattern '^${{matrix.version}}.\d+' -o docs/changelog/index.md | ||
# npx auto-changelog --release-summary | ||
# - name: Commit changelogs | ||
# run: | | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "GitHub Action" | ||
# git add . | ||
# git status | ||
# git commit -m "Update changelogs" | ||
# - name: Push changelogs | ||
# uses: ad-m/github-push-action@master | ||
# with: | ||
# github_token: ${{ secrets.GIT_PUSH_TOKEN }} | ||
# branch: 'release/${{matrix.version}}' | ||
# force: false |