-
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (51 loc) · 1.29 KB
/
push.yml
File metadata and controls
53 lines (51 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: "Node.js CI"
on:
pull_request:
branches:
- "main"
push:
branches:
- "main"
jobs:
check:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v6"
- uses: "actions/setup-node@v6"
with:
cache: "npm"
node-version: "24"
- run: "npm ci"
- run: "npm run lint"
- run: "npm run test:cover"
- run: "npm run build"
- uses: "actions/upload-artifact@v7"
with:
if-no-files-found: "error"
name: "build-output"
path: "lib/"
deploy:
needs:
- "check"
environment:
name: netlify
if: "github.ref == 'refs/heads/main' && github.actor != 'dependabot[bot]'"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v6"
- uses: "actions/setup-node@v6"
with:
cache: "npm"
node-version: "24"
- run: "npm ci --omit dev"
- uses: "actions/download-artifact@v8"
with:
name: "build-output"
path: "lib/"
- run: "npm install --global netlify-cli@latest"
- run: "netlify --version"
- run: "netlify deploy --no-build --prod true"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ vars.NETLIFY_SITE_ID }}