Skip to content

Commit e5c9acc

Browse files
Create nightly-on-main.yml
1 parent 208e04f commit e5c9acc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/nightly-on-main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Nightly Command on Master Branch
2+
3+
on:
4+
schedule:
5+
- cron: "0 6 * * *"
6+
7+
jobs:
8+
nightly-command:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
with:
15+
ref: master
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: "18"
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Run nightly command
26+
run: npm run publish:nightly

0 commit comments

Comments
 (0)