ci: fix typo #16
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: Lint, Build, and Deploy (Staging) | |
on: | |
push: | |
branches: | |
- staging | |
jobs: | |
build: | |
timeout-minutes: 10 | |
env: | |
CI: 'true' | |
SITE_ENV: 'staging' | |
DEPLOY_URL: 'https://dat.coolkidscomputerclub.workers.dev/' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Configure NPM | |
run: | | |
echo "//npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN" > .npmrc | |
echo '@saulhardman:registry=https://npm.pkg.github.com' >> .npmrc | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
- name: Install Dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Lint Source Files | |
run: yarn lint | |
- name: Run Static Site Generator (Staging) | |
run: yarn build | |
env: | |
NODE_ENV: production | |
- name: Deploy to Cloudflare (Staging) | |
env: | |
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
run: | | |
npx wrangler deploy --env staging |