Run #515
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: 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 |