This repository was archived by the owner on Jan 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +33
-5
lines changed Expand file tree Collapse file tree 2 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 1
1
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
3
4
- name : Node.js CI
4
+ name : Build & Test
5
5
6
6
on :
7
7
push :
11
11
12
12
jobs :
13
13
build :
14
-
14
+ name : ' Build & Test '
15
15
runs-on : ubuntu-latest
16
-
17
16
strategy :
18
17
matrix :
19
18
node-version : [10.x, 12.x]
20
-
21
19
steps :
22
20
- uses : actions/checkout@v2
23
21
- name : Use Node.js ${{ matrix.node-version }}
26
24
node-version : ${{ matrix.node-version }}
27
25
- run : npm ci
28
26
- run : npm run build --if-present
29
- - run : npm test
27
+ - run : npm test
Original file line number Diff line number Diff line change
1
+ name : npm-publish
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ npm-publish :
10
+ name : npm-publish
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ node-version : [10.x, 12.x]
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@master
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ - name : Publish if version has been updated
23
+ uses : pascalgn/npm-publish-action@4f4bf159e299f65d21cd1cbd96fc5d53228036df
24
+ with : # All of theses inputs are optional
25
+ tag_name : " %s"
26
+ tag_message : " %s"
27
+ commit_pattern : " ^Release (\\ S+)"
28
+ env :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
30
+ NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
You can’t perform that action at this time.
0 commit comments