-
Notifications
You must be signed in to change notification settings - Fork 547
45 lines (37 loc) · 1.03 KB
/
build-prod.yml
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
name: Create Tagged Release Prod
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
name: "Build Changelog & Release Prod"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
# We fetch to 0 so we can collect the commits
# since last update
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Download all modules
run: npm ci
- name: Build project
run: npm run build
- name: Compress build output with zip
run: |
cd dist && zip -r ../monitor.zip .
- name: Create and Upload Release
uses: "marvinpinto/[email protected]"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: monitor.zip