This repository has been archived by the owner on May 26, 2024. It is now read-only.
Pull facilitator from cohort class rather than cohort #45
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: CI/CD | |
on: push | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
node-version: [lts/*] | |
env: | |
CI: true | |
steps: | |
- name: Checkout ${{ github.sha }} | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint --if-present | |
- name: Build | |
run: npm run build --if-present | |
- name: Test | |
run: npm run test --if-present | |
- name: "Deploy" | |
if: github.ref == 'refs/heads/master' && matrix.node-version == 'lts/*' | |
run: npm run deploy:prod | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} |