File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 types : [created]
66
77jobs :
8- build :
8+ publish-npm :
99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v3
1212 - uses : actions/setup-node@v3
1313 with :
1414 node-version : " 22.x"
15- registry-url : " https://npm.pkg.github.com "
15+ registry-url : " https://registry.npmjs.org "
1616 scope : " @imbios"
1717 - uses : pnpm/action-setup@v2
1818 with :
1919 version : latest
2020 - run : pnpm install
2121 - run : pnpm test
2222 - run : pnpm run build
23- - run : pnpm publish
23+ - run : pnpm publish --no-git-checks
24+ env :
25+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
26+
27+ publish-github :
28+ runs-on : ubuntu-latest
29+ needs : publish-npm
30+ steps :
31+ - uses : actions/checkout@v3
32+ - uses : actions/setup-node@v3
33+ with :
34+ node-version : " 22.x"
35+ registry-url : " https://npm.pkg.github.com"
36+ scope : " @imbios"
37+ - uses : pnpm/action-setup@v2
38+ with :
39+ version : latest
40+ - run : pnpm install
41+ - run : pnpm publish --no-git-checks
2442 env :
2543 NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments