Skip to content

Commit

Permalink
Add build YAML to build on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhirls committed Jan 29, 2024
1 parent 36ff416 commit 4247df4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build

on:
push:
branches: [ "main" ]
pull_request:
types:
- opened

env:
MAJOR_VERSION: 0
MINOR_VERSION: 0

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- name: Run build
run: npm run prepublish

0 comments on commit 4247df4

Please sign in to comment.