File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 2424 with :
2525 node-version : ${{ inputs.node-version }}
2626
27+ - name : Enable Corepack
28+ shell : bash
29+ run : corepack enable
30+
2731 - name : Check Yarn Version
2832 id : yarn-version
2933 shell : bash
Original file line number Diff line number Diff line change 1414 required : false
1515 secrets :
1616 NPM_TOKEN :
17- required : true
17+ required : false
1818 description : ' NPM token'
1919
2020jobs :
3333 - name : Build
3434 run : yarn build
3535
36+ - name : Set Publish Config
37+ id : set-token
38+ if : ' !secrets.NPM_TOKEN'
39+ run : |
40+ yarn config set npmPublishProvenance true
41+ yarn config set npmRegistryServer https://registry.npmjs.org/
42+
3643 - name : Set NPM Token
3744 id : set-token
45+ if : secrets.NPM_TOKEN
3846 # Solution for NPM (as well as Yarn v1)
3947 run : |
4048 # Create a temporary directory for putting the .npmrc file
You can’t perform that action at this time.
0 commit comments