Skip to content

Commit eff34b8

Browse files
author
sherry
committed
update nodejs.yml
1 parent 32f3254 commit eff34b8

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/nodejs.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
13
name: npm-publish
24
on:
35
push:
@@ -8,17 +10,13 @@ jobs:
810
name: npm-publish
911
runs-on: ubuntu-latest
1012
steps:
11-
- name: Checkout repository
12-
uses: actions/checkout@master
13-
- name: Set up Node.js
14-
uses: actions/setup-node@master
15-
with:
16-
node-version: 10.0.0
17-
- name: Publish if version has been updated
18-
uses: pascalgn/npm-publish-action@4f4bf159e299f65d21cd1cbd96fc5d53228036df
19-
with: # All of theses inputs are optional
20-
tag_name: "v%s"
21-
tag_message: "v%s"
22-
commit_pattern: "^Release (\\S+)"
23-
env: # More info about the environment variables in the README
24-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
13+
- name: Checkout repository
14+
uses: actions/checkout@master
15+
- name: Set up Node.js
16+
uses: actions/setup-node@master
17+
with:
18+
node-version: 10.0.0
19+
registry-url: https://registry.npmjs.org/
20+
- run: npm publish
21+
env: # More info about the environment variables in the README
22+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} # You need to set this in your repo settings

0 commit comments

Comments
 (0)