File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 77
88permissions :
99 contents : read
10+ packages : write
1011
1112jobs :
1213 publish :
1920 uses : actions/setup-node@v4
2021 with :
2122 node-version : ' 18'
22- registry-url : ' https://registry.npmjs.org'
23+ registry-url : ' https://npm.pkg.github.com'
24+ scope : ' @yokowu'
2325
2426 - name : Setup pnpm
2527 uses : pnpm/action-setup@v4
4042 TAG_VERSION=${GITHUB_REF#refs/tags/v}
4143 npm version $TAG_VERSION --no-git-tag-version
4244
43- - name : Publish to NPM Registry
45+ - name : Publish to GitHub Packages
4446 working-directory : ./ui/ModelModal
4547 run : pnpm publish --no-git-checks
4648 env :
47- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
49+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50+
51+ - name : Publish to NPM Registry
52+ working-directory : ./ui/ModelModal
53+ run : |
54+ npm config set registry https://registry.npmjs.org/
55+ npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
56+ pnpm publish --no-git-checks
57+ env :
58+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments