Skip to content

Commit aaa1b87

Browse files
authored
Merge pull request #47 from fwal/auto-build
Automatically build dist on merge to master
2 parents e50ea64 + 8f237e6 commit aaa1b87

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-dist:
10+
name: Build distribution
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
ref: ${{ github.head_ref }}
16+
17+
- run: npm install
18+
- run: npm run pack-source-map
19+
20+
- uses: stefanzweifel/git-auto-commit-action@v4.2.0
21+
with:
22+
file_pattern: dist/index.js
23+
commit_message: New dist

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Unit tests
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@master
16+
- uses: actions/checkout@v2
1717
- run: npm install
1818
- run: npm run format-check
1919
- run: npm test
@@ -25,7 +25,7 @@ jobs:
2525
os: [ubuntu-latest, macos-latest]
2626
swift: ["5.2.1", "4.2.4"]
2727
steps:
28-
- uses: actions/checkout@master
28+
- uses: actions/checkout@v2
2929
- run: npm install
3030
- run: npm run build && npm run pack-source-map
3131
- uses: ./

0 commit comments

Comments
 (0)