Skip to content

Create node.yml

Create node.yml #3

Workflow file for this run

name: Node CI
on:
pull_request:
push:
branches: [main, master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
- name: npm install, build, and test
run: |
npm i
npm run build --if-present
env:
CI: true
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: |
dist