Skip to content

Create deploy.yml

Create deploy.yml #1

Workflow file for this run

on:
push:
branches:
- main
- deploy_gha
name: Deploy
jobs:
test:
name: Deploy on merge to main
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/setup-node@v2
with:
node-version: '20'
- run: npm install
- run: npm run build
- run: sudo apt-get install tree
- run: tree build