-
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (38 loc) · 1.18 KB
/
run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Run
on:
schedule:
- cron: '1 0 * * *' # Run every day at 1:00 am UTC (9:00 pm EST)
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'node'
- name: Configure npm
run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./package-files/.npmrc
- name: Cache dependencies
uses: actions/cache@v2
with:
path: node_modules
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-
- name: Install Packages
run: yarn install --frozen-lockfile
- name: Configure git
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
- name: Run
run: yarn run run
env:
CI: true
NODE_ENV: debug