Skip to content

Commit 65bb3a8

Browse files
committed
add script to check build and publish
1 parent 841669d commit 65bb3a8

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/test.yml .github/workflows/build.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,5 @@ jobs:
1515
run: npm install
1616
- name: Eslint
1717
run: npm run lint
18-
- name: Test
19-
run: npm run test
20-
- name: Compile and build
18+
- name: Build
2119
run: npm run build

.github/workflows/publish.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Package Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 22
15+
- name: Install dependencies
16+
run: npm install
17+
- name: Build
18+
run: npm run build
19+
- uses: JS-DevTools/npm-publish@v1
20+
with:
21+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)