File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and publish library
2
2
3
- on :
4
- push :
5
- branches : ['main']
6
- env :
7
- NPM_AUTH_TOKEN : ${{ secrets.READER_TOKEN }}
3
+ on : push
8
4
9
5
permissions :
10
6
actions : read
11
7
contents : write
12
8
packages : write
13
9
id-token : write
14
10
11
+ env :
12
+ NPM_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
13
+
15
14
jobs :
16
15
build :
17
16
if : " !contains(github.event.head_commit.message, '[docs]')"
18
17
runs-on : ubuntu-latest
19
- env :
20
- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
18
steps :
22
19
- uses : actions/checkout@v4
23
20
- run : corepack enable
Original file line number Diff line number Diff line change 4
4
"license" : " MIT" ,
5
5
"main" : " ./dist/index.js" ,
6
6
"types" : " ./dist/index.d.ts" ,
7
+ "publishConfig" : {
8
+ "access" : " public" ,
9
+ "registry" : " https://npm.pkg.github.com/"
10
+ },
7
11
"files" : [
8
12
" dist"
9
13
],
You can’t perform that action at this time.
0 commit comments