Skip to content

Commit 96ffaf6

Browse files
committed
build: update github actions
1 parent bbcdcbb commit 96ffaf6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/npm.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: NPM Installation
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- "dependabot/**"
7+
schedule:
8+
- cron: '0 0 * * *'
9+
10+
env:
11+
FORCE_COLOR: 2
12+
NODE: 16
13+
14+
jobs:
15+
build:
16+
strategy:
17+
matrix:
18+
platform: [ubuntu-latest, windows-latest]
19+
node-version: [16.x, 17.x, 18.x]
20+
runs-on: ${{ matrix.platform }}
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v3
24+
25+
- name: Set up Node.js
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ env.node-version }}
29+
30+
- name: Install npm dependencies
31+
run: npm install
32+
33+
- name: Run build
34+
run: npm run build

0 commit comments

Comments
 (0)