Skip to content

Commit 7362fe8

Browse files
Manifest GitHub Actions workflows
Manifest workflows, just to get checks of building and releases at least created.
1 parent 5d0a1a5 commit 7362fe8

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
runs-on: ${{ matrix.os }}
17+
name: "Build - ${{ matrix.os }}"
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
27+
- name: Install dependencies
28+
run: npm install
29+
30+
- name: Build
31+
run: npm run build
32+
33+
- name: Test
34+
run: npm test

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
runs-on: ${{ matrix.os }}
17+
name: "Build - ${{ matrix.os }}"
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
27+
- name: Install dependencies
28+
run: npm install
29+
30+
- name: Build
31+
run: npm run build
32+
33+
- name: Create release
34+
uses: softprops/action-gh-release@v2
35+
with:
36+
files: dist/*
37+
tag_name: ${{ github.ref }}
38+
name: ${{ github.ref }}
39+
body: |
40+
This is a release for version ${{ github.ref }}.
41+
It contains the compiled files from the build process.

0 commit comments

Comments
 (0)