File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 6
6
- master
7
7
8
8
jobs :
9
- publish :
9
+ build :
10
10
runs-on : ubuntu-latest
11
- steps :
12
- - name : Checkout code
13
- uses : actions/checkout@v2
14
-
15
- - name : Install dependencies
16
- run : npm install
17
11
18
- - name : Login to npm
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ # Setup .npmrc file to publish to npm
15
+ - uses : actions/setup-node@v4
16
+ with :
17
+ node-version : ' 20.x'
18
+ registry-url : ' https://registry.npmjs.org'
19
+ - run : npm ci
20
+ - run : npm publish --provenance --access public
19
21
env :
20
22
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
21
- run : npm login --auth-type=token
22
-
23
- - name : Publish to npm
24
- run : npm publish
Original file line number Diff line number Diff line change 8
8
},
9
9
"repository" : {
10
10
"type" : " git" ,
11
- "url" : " https://github.com/Buzut/humantime.git"
11
+ "url" : " git+ https://github.com/Buzut/humantime.git"
12
12
},
13
13
"keywords" : [
14
14
" moment" ,
You can’t perform that action at this time.
0 commit comments