This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
chore(release): 1.10.3 #75
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
name: bump | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
bump: | |
runs-on: ubuntu-latest | |
if: github.event.head_commit.author.email != '[email protected]' | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.RELEASE_TOKEN }} | |
- name: Setup Node.js 14.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn config get cacheFolder)" | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: build | |
run: | | |
yarn | |
yarn test | |
yarn build | |
- name: Setup commit user | |
run: | | |
git config user.name "Releaser Astronaut" | |
git config user.email "[email protected]" | |
- name: Bump a new version | |
run: | | |
yarn | |
yarn ci:release | |
- run: git push --follow-tags origin master |