File tree Expand file tree Collapse file tree 5 files changed +660
-2270
lines changed Expand file tree Collapse file tree 5 files changed +660
-2270
lines changed Original file line number Diff line number Diff line change 1
1
name : npm-publish
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- main
7
+
6
8
jobs :
7
9
npm-publish :
8
10
name : npm-publish
9
11
runs-on : ubuntu-latest
10
12
steps :
11
- - name : Checkout repository
12
- uses : actions/checkout@v2
13
- - name : Publish if version has been updated
14
- uses : pascalgn/npm-publish-action@1.3.9
13
+ - uses : actions/checkout@v4
14
+ - uses : actions/setup-node@v4
15
+ with :
16
+ node-version : 20
17
+ - run : npm ci
18
+ - run : npm test
19
+ - uses : pascalgn/npm-publish-action@1.3.9
20
+ with :
21
+ publish_command : npm
15
22
env :
16
23
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17
24
NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 10
10
test :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v3
14
- - uses : actions/setup-node@v3
13
+ - uses : actions/checkout@v4
14
+ - uses : actions/setup-node@v4
15
15
with :
16
- node-version : 16.18.0
16
+ node-version : 20
17
17
- run : npm ci
18
18
- run : npm test
Original file line number Diff line number Diff line change 3
3
## Test ` npm run test `
4
4
This runs the ** tests** once.
5
5
6
- ## Test Watch: ` npm run test: watch `
7
- This runs the tests and listens for file updates then runs the tests all over again .
6
+ ## Test Watch: ` npm run test -- -- watch `
7
+ Runs the tests and listens for file updates.
You can’t perform that action at this time.
0 commit comments