Skip to content

Commit 5277b29

Browse files
committed
Add build workflows
1 parent 463ebc3 commit 5277b29

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

.github/workflows/build-release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build & release
2+
on:
3+
push:
4+
branches:
5+
- releases/**
6+
7+
jobs:
8+
build:
9+
name: Build compiled JS version
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@master
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@master
17+
with:
18+
node-version: 12.0.0
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Compile TypeScript into compressed JavaScript
24+
run: npm run build
25+
26+
- name: Commit changes
27+
uses: EndBug/[email protected]
28+
with:
29+
author_name: Federico Grandi
30+
author_email: [email protected]
31+
force: true
32+
message: "[auto] Commit release files"
33+
path: "."
34+
pattern: "*.*"
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
on:
3+
push:
4+
branches-ignore:
5+
- releases/**
6+
7+
jobs:
8+
build:
9+
name: Build compiled JS version
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@master
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@master
17+
with:
18+
node-version: 12.0.0
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Compile TypeScript into compressed JavaScript
24+
run: npm run build
25+
26+
- name: Commit changes
27+
uses: EndBug/[email protected]
28+
with:
29+
author_name: Federico Grandi
30+
author_email: [email protected]
31+
force: true
32+
message: "[auto] Update compiled version"
33+
path: lib
34+
pattern: "*.js"
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)