File tree Expand file tree Collapse file tree 3 files changed +61
-7
lines changed Expand file tree Collapse file tree 3 files changed +61
-7
lines changed Original file line number Diff line number Diff line change 1+ name : cron
2+
3+ on :
4+ schedule :
5+ # Cron job every Monday at 12:00
6+ # https://crontab.guru/every-monday
7+ - cron : ' 0 0 * * MON'
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v2
15+ - name : Setup Node.js
16+ uses : actions/setup-node@v2
17+ with :
18+ node-version : lts/*
19+ - name : Install
20+ run : npm install --no-package-lock
21+ - name : Cron
22+ run : |
23+ git config --global user.email ${{ secrets.GIT_EMAIL }}
24+ git config --global user.name ${{ secrets.GIT_USERNAME }}
25+ npm run cronjob
Original file line number Diff line number Diff line change 1+ name : test
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v2
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v2
19+ with :
20+ node-version : lts/*
21+ - name : Install
22+ run : npm install --no-package-lock
23+ - name : Test
24+ run : npm test
25+ - name : Release
26+ if : ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'release') }}
27+ shell : ' script -q -e -c "bash {0}"'
28+ run : |
29+ git config --global user.email ${{ secrets.GIT_EMAIL }}
30+ git config --global user.name ${{ secrets.GIT_USERNAME }}
31+ CONVENTIONAL_GITHUB_RELEASER_TOKEN=${{ secrets.GITHUB_TOKEN }} NPM_TOKEN=${{ secrets.NPM_TOKEN }} npm run release
Original file line number Diff line number Diff line change 4646 "finepack" : " latest" ,
4747 "git-authors-cli" : " latest" ,
4848 "git-dirty" : " latest" ,
49- "husky" : " latest" ,
5049 "lint-staged" : " latest" ,
5150 "npm-check-updates" : " latest" ,
5251 "prettier-standard" : " latest" ,
52+ "simple-git-hooks" : " latest" ,
5353 "standard" : " latest" ,
5454 "standard-markdown" : " latest" ,
5555 "standard-version" : " latest"
8686 " @commitlint/config-conventional"
8787 ]
8888 },
89- "husky" : {
90- "hooks" : {
91- "commit-msg" : " commitlint -E HUSKY_GIT_PARAMS" ,
92- "pre-commit" : " lint-staged"
93- }
94- },
9589 "lint-staged" : {
9690 "package.json" : [
9791 " finepack"
10296 "*.md" : [
10397 " standard-markdown"
10498 ]
99+ },
100+ "simple-git-hooks" : {
101+ "commit-msg" : " npx commitlint --edit" ,
102+ "pre-commit" : " npx lint-staged"
105103 }
106104}
You can’t perform that action at this time.
0 commit comments