@@ -34,6 +34,7 @@ export default definePipeline({
3434 "github:check" : "github check" ,
3535 "github:generate" : "github generate" ,
3636 "pages" : "run-task docs.site" ,
37+ "publish:github:release" : "publish github release --package . --registry https://npm.pkg.github.com" ,
3738 "publish:npm" : "publish npm --package ." ,
3839 "release:doctor" : "release doctor --package ." ,
3940 "release:ensure" : "release ensure --package ." ,
@@ -112,11 +113,19 @@ export default definePipeline({
112113 run : sh `pnpm async-pipeline release ensure --package ${ packagePath } `
113114 } ) ,
114115
115- publish : task ( {
116- description : "Publish the verified release to npm after release ensure, then run release doctor ." ,
116+ " publish-github" : task ( {
117+ description : "Publish the stable GitHub Packages mirror before npm publishing ." ,
117118 dependsOn : [ "release-ensure" ] ,
118119 inputs : [ "source" ] ,
119120 cache : false ,
121+ run : sh `pnpm async-pipeline publish github release --package ${ packagePath } --registry https://npm.pkg.github.com`
122+ } ) ,
123+
124+ publish : task ( {
125+ description : "Publish the verified release to npm after the GitHub Packages mirror, then run release doctor." ,
126+ dependsOn : [ "publish-github" ] ,
127+ inputs : [ "source" ] ,
128+ cache : false ,
120129 run : [
121130 sh `pnpm async-pipeline publish npm --package ${ packagePath } ` ,
122131 sh `pnpm async-pipeline release doctor --package ${ packagePath } `
@@ -154,7 +163,8 @@ export default definePipeline({
154163 } ,
155164 github : {
156165 permissions : {
157- contents : "write"
166+ contents : "write" ,
167+ packages : "write"
158168 }
159169 }
160170 } ) ,
0 commit comments