From a031c25ed238885c8b58f01d48ef9794bafc16b3 Mon Sep 17 00:00:00 2001 From: Ben Durrant Date: Thu, 8 Feb 2024 21:07:37 +0000 Subject: [PATCH] use foreach so publish doesn't fail if package doesn't have tests, and add config packages to publish job --- .github/workflows/publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3cc77b81a1..f2053cca58 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,10 @@ on: - '@rtk-query/codegen-openapi' - '@rtk-query/graphql-request-base-query' - '@reduxjs/rtk-codemods' + - '@reduxjs/eslint-config' + - '@reduxjs/prettier-config' + - '@reduxjs/tsconfig' + - '@reduxjs/vitest-config' jobs: publish: runs-on: ubuntu-latest @@ -28,7 +32,7 @@ jobs: registry-url: 'https://registry.npmjs.org' cache: 'yarn' - run: yarn install --frozen-lockfile - - run: yarn workspace ${{ inputs.package }} test + - run: yarn workspaces foreach --include "${{ inputs.package }}" run test - run: yarn workspace ${{ inputs.package }} exec npm publish --access public --provenance env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}