Skip to content

Commit c046290

Browse files
committed
ci(#58): adds pkg job w/ artifacts
1 parent ad4eb03 commit c046290

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/pkg.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: pkg
2+
3+
on:
4+
push:
5+
tags: '*'
6+
branches: 'master'
7+
8+
jobs:
9+
create-pkg:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
node-version: [14.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- uses: bahmutov/npm-install@v1
23+
24+
- run: yarn build
25+
working-directory: ./app-config-main
26+
27+
- run: npx pkg . --out-path ./pkg -t node14-linux-x64,node14-macos-x64
28+
working-directory: ./app-config-main
29+
30+
- uses: actions/upload-artifact@v2
31+
with:
32+
name: release
33+
path: app-config-main/pkg/*

0 commit comments

Comments
 (0)