We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28ec32e commit 38deb67Copy full SHA for 38deb67
.github/workflows/build.yaml
@@ -1,8 +1,9 @@
1
name: Build
2
3
on:
4
- - push
5
- - pull_request
+ push:
+ branches:
6
+ - "main"
7
8
jobs:
9
build:
@@ -15,5 +16,5 @@ jobs:
15
16
node-version: 20.x
17
cache: "npm"
18
- run: npm ci
- - run: npm run build --if-present
19
+ - run: npm run build
20
- run: npm test
.github/workflows/pr.yaml
@@ -0,0 +1,18 @@
+name: Build
+
+on:
+ - pull_request
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
10
+ - uses: actions/checkout@v3
11
+ - name: Setup Node.js
12
+ uses: actions/setup-node@v3
13
+ with:
14
+ node-version: 20.x
+ cache: "npm"
+ - run: npm ci
+ - run: npm test
0 commit comments