File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ publish :
10+ name : Publish to npm
11+ runs-on : ubuntu-latest
12+ permissions :
13+ id-token : write
14+ contents : read
15+ steps :
16+ - uses : actions/checkout@v4
17+ with :
18+ persist-credentials : false
19+ - uses : pnpm/action-setup@v4
20+ with :
21+ version : 10
22+ - uses : actions/setup-node@v4
23+ with :
24+ node-version : ' 22'
25+ cache : pnpm
26+ registry-url : ' https://registry.npmjs.org'
27+ - run : pnpm install --frozen-lockfile
28+ - run : pnpm build
29+ - run : pnpm publish -r --access public --no-git-checks
Original file line number Diff line number Diff line change @@ -63,24 +63,16 @@ console.log('Updated packages/lib/src/version.ts')
6363console . log ( '\nBuilding all packages...' )
6464run ( 'pnpm build' )
6565
66- // Publish packages in order
67- console . log ( '\nPublishing packages...' )
68- for ( const pkg of packages ) {
69- const pkgDir = path . join ( rootDir , 'packages' , pkg )
70- console . log ( `\nPublishing ${ pkg } ...` )
71- run ( 'pnpm publish --no-git-checks --access public' , pkgDir )
72- }
73-
7466// Git operations
7567const tag = `v${ newVersion } `
7668console . log ( `\nCreating git tag ${ tag } ...` )
7769run ( 'git add -A' )
7870run ( `git commit -m "${ tag } "` )
7971run ( `git tag -a "${ tag } " -m "${ tag } "` )
80- run ( 'git push --follow -tags' )
72+ run ( 'git push && git push - -tags' )
8173
8274// Deploy app to GitHub Pages
8375console . log ( '\nDeploying app to GitHub Pages...' )
8476run ( 'pnpm run deploy' , path . join ( rootDir , 'packages/app' ) )
8577
86- console . log ( `\n✓ Successfully released ${ tag } and deployed app ` )
78+ console . log ( `\n✓ Released ${ tag } — GitHub Actions will publish to npm ` )
You can’t perform that action at this time.
0 commit comments