File tree 2 files changed +19
-13
lines changed
2 files changed +19
-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
11
+ permissions :
12
+ contents : read
13
+ id-token : write
14
14
15
- - name : Install dependencies
16
- run : npm install
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ # Setup .npmrc file to publish to npm
18
+ - uses : actions/setup-node@v4
19
+ with :
20
+ node-version : ' 20.x'
21
+ registry-url : ' https://registry.npmjs.org'
22
+ always-auth : true
23
+ scope : ' @buzut'
17
24
18
- - name : Login to npm
25
+ - run : npm publish --provenance --access public
19
26
env :
20
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
21
- run : npm login --auth-type=token
22
-
23
- - name : Publish to npm
24
- run : npm publish
27
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_SECRET }}
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" ,
27
27
},
28
28
"devDependencies" : {
29
29
"prettier" : " ^3.3.3"
30
+ },
31
+ "publishConfig" : {
32
+ "access" : " public"
30
33
}
31
34
}
You can’t perform that action at this time.
0 commit comments