Skip to content

Commit 0d75ab2

Browse files
authored
Merge pull request #273 from dylanwatsonsoftware/patch-1
ci: Add basic github action build
2 parents 8fa178d + 07dba76 commit 0d75ab2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-node@v3
9+
with:
10+
node-version: 16
11+
- name: Cache node modules
12+
uses: actions/cache@v3
13+
env:
14+
cache-name: cache-node-modules
15+
with:
16+
# npm cache files are stored in `~/.npm` on Linux/macOS
17+
path: ~/.npm
18+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
19+
restore-keys: |
20+
${{ runner.os }}-build-${{ env.cache-name }}-
21+
${{ runner.os }}-build-
22+
${{ runner.os }}-
23+
- name: Install
24+
run: npm install
25+
- name: Build
26+
run: npm run build

0 commit comments

Comments
 (0)