Skip to content

Commit f9eaa0f

Browse files
authored
Create test_npm
1 parent bb3abae commit f9eaa0f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/test_npm

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Node.js Package
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish-npm:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
13+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo:
14+
- uses: actions/checkout@v3
15+
with:
16+
node-version: 14
17+
registry-url: https://registry.npmjs.org/
18+
- run: npm list
19+
env:
20+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)