Merge pull request #2 from H1ghBre4k3r/dependabot/npm_and_yarn/typesc… #23
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: Build | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node-version: [20.x] | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build (typecheck) the project | |
run: npm run build | |
- name: Lint the project | |
run: npm run lint | |
image: | |
needs: build | |
uses: ./.github/workflows/image.yml | |
secrets: inherit | |
deploy: | |
if: ${{ github.ref_name == 'main' }} | |
needs: image | |
uses: ./.github/workflows/deploy.yml | |
secrets: inherit |