Skip to content

Commit 21fb844

Browse files
authored
Add CI for building package (#44)
1 parent 6e84d2c commit 21fb844

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/package.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
- name: Install dependencies
16+
run: npm install
17+
- name: Build
18+
run: npm run build
19+
- name: Package
20+
run: npm pack
21+
- name: Upload
22+
uses: actions/upload-artifact@v2
23+
with:
24+
name: webln
25+
path: "*.tgz"

rollup.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ export default [
3939
unsafe_comps: true,
4040
warnings: false,
4141
},
42+
format: {
43+
comments: false,
44+
},
4245
}),
4346
],
4447
},

0 commit comments

Comments
 (0)