File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 24
24
25
25
jobs :
26
26
test-and-publish :
27
- if : github.repository == 'TanStack/query' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/v4')
27
+ if : github.repository == 'TanStack/query'
28
28
name : ' Test & Publish'
29
29
runs-on : ubuntu-latest
30
30
steps :
Original file line number Diff line number Diff line change @@ -371,15 +371,14 @@ async function run() {
371
371
}
372
372
373
373
console . info ( )
374
- console . info ( `Publishing all packages to npm with tag " ${ npmTag } " ` )
374
+ console . info ( `Publishing all packages to npm` )
375
375
376
376
// Publish each package
377
377
changedPackages . forEach ( ( pkg ) => {
378
378
const packageDir = path . join ( rootDir , 'packages' , pkg . packageDir )
379
- const cmd = `cd ${ packageDir } && pnpm publish --tag ${ npmTag } --access=public --no-git-checks`
380
- console . info (
381
- ` Publishing ${ pkg . name } @${ version } to npm with tag "${ npmTag } "...` ,
382
- )
379
+ const tagParam = branchConfig . previousVersion ? `--tag ${ npmTag } ` : ''
380
+ const cmd = `cd ${ packageDir } && pnpm publish ${ tagParam } --access=public --no-git-checks`
381
+ console . info ( ` Publishing ${ pkg . name } @${ version } to npm "${ tagParam } "...` )
383
382
execSync ( cmd , {
384
383
stdio : [ process . stdin , process . stdout , process . stderr ] ,
385
384
} )
You can’t perform that action at this time.
0 commit comments