Skip to content

Commit e81c07b

Browse files
EskiMojo14aryaemami59
authored andcommitted
use foreach so publish doesn't fail if package doesn't have tests, and add config packages to publish job
1 parent 17116a4 commit e81c07b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
- '@rtk-query/codegen-openapi'
1515
- '@rtk-query/graphql-request-base-query'
1616
- '@reduxjs/rtk-codemods'
17+
- '@reduxjs/eslint-config'
18+
- '@reduxjs/prettier-config'
19+
- '@reduxjs/tsconfig'
20+
- '@reduxjs/vitest-config'
1721
jobs:
1822
publish:
1923
runs-on: ubuntu-latest
@@ -28,7 +32,7 @@ jobs:
2832
registry-url: 'https://registry.npmjs.org'
2933
cache: 'yarn'
3034
- run: yarn install --frozen-lockfile
31-
- run: yarn workspace ${{ inputs.package }} test
35+
- run: yarn workspaces foreach --include "${{ inputs.package }}" run test
3236
- run: yarn workspace ${{ inputs.package }} exec npm publish --access public --provenance
3337
env:
3438
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)