File tree Expand file tree Collapse file tree 6 files changed +39
-2
lines changed
Expand file tree Collapse file tree 6 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Release NPM
2+
3+ permissions :
4+ contents : write
5+ id-token : write
6+
7+ on :
8+ push :
9+ tags :
10+ - " v*"
11+
12+ jobs :
13+ release :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ with :
18+ fetch-depth : 0
19+ - uses : actions/setup-node@v4
20+ with :
21+ node-version : " 20"
22+ registry-url : https://registry.npmjs.org/
23+ - uses : pnpm/action-setup@v4
24+ - run : pnpm install
25+ - name : Upgrade npm
26+ run : npm i -g npm@latest
27+ - name : Publish to NPM
28+ run : pnpm run publish
Original file line number Diff line number Diff line change 1616 "check" : " biome check --write" ,
1717 "example:dev" : " pnpm -C packages/example dev" ,
1818 "prepare" : " husky" ,
19- "release " : " pnpm -r run release "
19+ "publish " : " pnpm -r publish --access public --no-git-checks "
2020 },
2121 "lint-staged" : {
2222 "*" : [
Original file line number Diff line number Diff line change 11{
22 "name" : " @halo-dev/comment-widget" ,
33 "version" : " 3.0.0" ,
4+ "repository" : {
5+ "type" : " git" ,
6+ "url" : " https://github.com/halo-dev/plugin-comment-widget.git" ,
7+ "directory" : " packages/comment-widget"
8+ },
49 "author" : {
510 "name" : " Halo" ,
611 "url" : " https://github.com/halo-dev"
3035 "build" : " vite build" ,
3136 "dev" : " vite build --watch" ,
3237 "locale:build" : " lit-localize build" ,
33- "locale:extract" : " lit-localize extract"
38+ "locale:extract" : " lit-localize extract" ,
39+ "prepublishOnly" : " pnpm run build"
3440 },
3541 "dependencies" : {
3642 "@emoji-mart/data" : " ^1.2.1" ,
Original file line number Diff line number Diff line change 11{
2+ "private" : true ,
23 "scripts" : {
34 "dev" : " vite"
45 },
Original file line number Diff line number Diff line change 11{
22 "type" : " module" ,
3+ "private" : true ,
34 "scripts" : {
45 "build" : " rsbuild build" ,
56 "dev" : " rsbuild build --watch --env-mode=development" ,
Original file line number Diff line number Diff line change 11{
2+ "private" : true ,
23 "scripts" : {
34 "build" : " tsc && rslib build" ,
45 "dev" : " rslib build --watch"
You can’t perform that action at this time.
0 commit comments