Update yarn to 4.5.2 #13
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: Build Documentation | |
on: | |
push: | |
branches: [ latest, legacy ] | |
pull_request: | |
branches: [ latest, legacy ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up NodeJS 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: yarn | |
- name: Build documentation | |
run: yarn docs | |
- name: Update repository | |
run: | | |
git config pull.rebase false | |
git pull | |
git add . | |
git config --global user.name "Danang Galuh Tegar Prasetyo" | |
git config --global user.email "[email protected]" | |
git commit -m "[GitHub Actions Automated] Update documentation" | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |