Skip to content

Commit 7a0fb4e

Browse files
committed
manage: Automatically modified publishPackage.yml
Signed-off-by: Jaid <jaid.jsx@gmail.com>
1 parent d24eba2 commit 7a0fb4e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/publishPackage.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Node package
2+
on:
3+
push:
4+
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: actions/checkout
10+
uses: actions/checkout@v1.2.0
11+
- name: actions/setup-node
12+
uses: actions/setup-node@v1.3.0
13+
with:
14+
node-version: "12.13.1"
15+
- name: npm install
16+
uses: jaid/action-npm-install@master
17+
with:
18+
githubToken: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Jest
20+
uses: jaid/action-jest@master
21+
with:
22+
githubToken: ${{ secrets.GITHUB_TOKEN }}
23+
- name: Publish
24+
uses: jaid/action-publish@master
25+
with:
26+
githubToken: ${{ secrets.packagesToken }}
27+
npmPrepareScript: build:prod
28+
publishDirectory: dist/package/production
29+
npmToken: ${{ secrets.npmToken }}

0 commit comments

Comments
 (0)