This repository has been archived by the owner on May 1, 2024. It is now read-only.
chore: move actions to node 16 #432
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: CD (on pr/main) | ||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
jobs: | ||
CD: | ||
runs-on: ubuntu-latest | ||
env: | ||
NEW_INFECTED_URL: ${{ secrets.NEW_INFECTED_URL }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
Check failure on line 18 in .github/workflows/main.yml GitHub Actions / CD (on pr/main)Invalid workflow file
|
||
node-version-file: ".nvmrc" | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build project | ||
run: npm run build | ||
- name: Lint | ||
run: npm run lint | ||
Release: | ||
runs-on: ubuntu-latest | ||
needs: [CD] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Release | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npx semantic-release | ||
# test: | ||
# needs: [build] | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Install dependencies | ||
# run: npm ci | ||
# - name: Test | ||
# run: npm run test |