Skip to content

Commit

Permalink
chore: reconfigure release
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Mar 12, 2021
1 parent 2d32a60 commit c2686fe
Showing 1 changed file with 56 additions and 56 deletions.
112 changes: 56 additions & 56 deletions .github/workflows/auto-dependency-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c2686fe

Please sign in to comment.