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 fcdaa4d commit 6894a0e
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions .github/workflows/auto-dependency-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ name: Auto dependency updater
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * 3'
# - cron: '0 4 * * 3'
- cron: '0 4 * * *'

jobs:
build:
Expand All @@ -27,63 +28,62 @@ jobs:
uses: actions/[email protected]
with:
node-version: 14.x
# - name: Install tools
# run: npm i lerna npm-check-updates --no-save
# - name: Update dependencies
# run: npm run ncu
- name: Install tools
run: npm i lerna npm-check-updates --no-save
- name: Update dependencies
run: npm run ncu
- name: Install dependencies
# run: npm run update
run: npm ci
# - name: Commit changed files
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Action"
# git add .
# git status
# git commit -m "Auto dependency update"
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: 'release/${{matrix.version}}'
# force: true
# - 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: true
# - 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
# release_name: Release ${{fromJson(steps.lerna.outputs.lernaJson).version}}
# tag_name: ${{fromJson(steps.lerna.outputs.lernaJson).version}}
run: npm run update
- name: Commit changed files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git status
git commit -m "Auto dependency update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'release/${{matrix.version}}'
force: true
- 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: true
- 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
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
Expand Down

0 comments on commit 6894a0e

Please sign in to comment.