Skip to content

Commit 976aa23

Browse files
committed
add: gh workflow for build and release
1 parent bfd38f9 commit 976aa23

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
tags: ["*"]
7+
pull_request:
8+
branches: ["main"]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 16.x
20+
cache: "npm"
21+
- run: npm ci
22+
- run: npm run build
23+
- uses: softprops/action-gh-release@v1
24+
if: startsWith(github.ref, 'refs/tags/')
25+
with:
26+
files: |
27+
out/index.js
28+
action.yml

0 commit comments

Comments
 (0)