Skip to content

Commit b1e9dcf

Browse files
Create npmpublish.yml
1 parent 578d0f5 commit b1e9dcf

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/npmpublish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up node
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
- name: Compile
17+
run: |
18+
npm cache verify
19+
npm install
20+
npm run compile
21+
- name: Test
22+
env:
23+
appSid: ${{secrets.appSidProd}}
24+
appKey: ${{secrets.appKeyProd}}
25+
apiBaseUrl: "https://api.aspose.cloud"
26+
run: npm run test-pipeline
27+
- name: Publish
28+
run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)