Skip to content

Commit f85bf9b

Browse files
committed
Last test with auto-building dist branch
1 parent 2096009 commit f85bf9b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build-release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build release
2+
on:
3+
push:
4+
branches:
5+
- dist
6+
7+
jobs:
8+
build:
9+
name: Build compiled JS version
10+
runs-on: windows-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: Commit dependencies
24+
uses: EndBug/[email protected]
25+
with:
26+
force: true
27+
message: "[auto] Update dependencies"
28+
path: node_modules
29+
pattern: "*.*"
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Compile TypeScript into compressed JavaScript
34+
run: npm run build
35+
36+
- name: Commit changes
37+
uses: EndBug/[email protected]
38+
with:
39+
force: true
40+
message: "[auto] Commit compiled files"
41+
path: lib
42+
pattern: "*.js"
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)