File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 22
22
- uses : actions/checkout@v3
23
23
- uses : actions/setup-node@v3
24
24
with :
25
- node-version : 18
25
+ node-version-file : .nvmrc
26
26
cache : npm
27
+ cache-dependency-path : ' **/package-lock.json'
27
28
- run : npm ci
28
29
- run : npm run lint
29
30
- run : npm run test
Original file line number Diff line number Diff line change @@ -34,11 +34,10 @@ jobs:
34
34
- uses : actions/checkout@v3
35
35
- uses : actions/setup-node@v3
36
36
with :
37
- node-version : 18
37
+ node-version-file : .nvmrc
38
38
cache : npm
39
+ cache-dependency-path : ' **/package-lock.json'
39
40
registry-url : https://registry.npmjs.org
40
- env :
41
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
42
41
- run : npm ci
43
42
- run : npm run test
44
43
- uses : codacy/codacy-coverage-reporter-action@v1
48
47
coverage-reports : coverage/lcov.info
49
48
- run : npm run build
50
49
- run : npm publish --registry=https://registry.npmjs.org
50
+ env :
51
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
51
52
- uses : jaywcjlove/github-action-package@main
52
53
id : pkg
53
54
- run : curl --silent -X PUT https://registry-direct.npmmirror.com/${{ steps.pkg.outputs.name }}/sync?sync_upstream=true
54
55
name : Sync the new version to npmmirror.com
56
+ - uses : actions/setup-node@v3
57
+ with :
58
+ registry-url : https://npm.pkg.github.com
59
+ - run : npm publish --registry=https://npm.pkg.github.com
60
+ env :
61
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments