Skip to content

Commit 2ee5653

Browse files
committed
add build on commit
1 parent fa09f1c commit 2ee5653

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/npm-build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
4+
name: Node.js Package
5+
6+
on:
7+
push:
8+
branches: [main]
9+
paths:
10+
- '**.js'
11+
- '**.json'
12+
- '.github/workflows/npm-build.yml'
13+
- 'test/**'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v3
21+
with:
22+
node-version: 16
23+
- run: npm ci
24+
- run: npm test

0 commit comments

Comments
 (0)