Data Sync #1278
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: Data Sync | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Publish | |
run: | | |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} | |
yarn | |
yarn build | |
yarn sync | |
yarn publish --no-git-tag-version --new-version patch | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Commit & Push changes | |
uses: actions-js/push@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
message: 'chore: sync data' | |
branch: 'master' |