basic commands #1
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: Compile Typescript | |
on: | |
push: | |
pull_request: | |
jobs: | |
compile-typescript: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install node-canvas dependencies | |
run: sudo apt-get update && sudo apt-get install build-essential libcairo2-dev libpango1.0-dev -y | |
- name: Install Node v20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
- name: Install Node dependencies | |
run: npm install | |
- name: Check eslint | |
run: npm run eslint | |
- name: Compile Typescript | |
run: npm run build |