Skip to content

Commit df02b16

Browse files
committed
ci: tweaks
1 parent 18cbd5f commit df02b16

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/cron.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
schedule:
55
# Cron job every day at 12:00
66
# https://crontab.guru/#0_12_*_*_*
7-
- cron: '0 0 * * *'
7+
- cron: '0 0 * * *'
88

99
jobs:
1010
test:

.github/workflows/test.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ name: test
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
pull_request:
88
branches:
9-
- master
9+
- master
1010

1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v3
17+
with:
18+
token: ${{ secrets.GH_TOKEN }}
1719
- name: Setup Node.js
1820
uses: actions/setup-node@v3
1921
with:
@@ -24,8 +26,11 @@ jobs:
2426
run: npm test
2527
- name: Release
2628
if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'release') }}
27-
shell: 'script -q -e -c "bash {0}"'
29+
shell: 'script -q -e -c "bash {0}" > /dev/null'
30+
env:
31+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GH_TOKEN }}
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2833
run: |
2934
git config --global user.email ${{ secrets.GIT_EMAIL }}
3035
git config --global user.name ${{ secrets.GIT_USERNAME }}
31-
CONVENTIONAL_GITHUB_RELEASER_TOKEN=${{ secrets.GITHUB_TOKEN }} NPM_TOKEN=${{ secrets.NPM_TOKEN }} npm run release
36+
npm run release

0 commit comments

Comments
 (0)