diff --git a/.github/workflows/mocks.yml b/.github/workflows/mocks.yml index 0a2c39269d..674aa7a702 100644 --- a/.github/workflows/mocks.yml +++ b/.github/workflows/mocks.yml @@ -1,4 +1,4 @@ -name: sdk/cloudflare +name: shared/mocks on: push: @@ -22,3 +22,4 @@ jobs: with: workspace_name: '@launchdarkly/private-js-mocks' workspace_path: packages/shared/mocks + should_build_docs: false diff --git a/actions/ci/action.yml b/actions/ci/action.yml index 439e4a3d54..6751d0cbd5 100644 --- a/actions/ci/action.yml +++ b/actions/ci/action.yml @@ -11,7 +11,9 @@ inputs: workspace_path: description: 'Path to the package to release.' required: true - + should_build_docs: + description: 'Whether docs should be built. It will be by default.' + default: true runs: using: composite steps: @@ -40,4 +42,5 @@ runs: - name: Build Docs shell: bash + if: ${{inputs.should_build_docs == 'true'}} run: yarn build:doc -- ${{ inputs.workspace_path }} diff --git a/packages/shared/common/package.json b/packages/shared/common/package.json index ade47c22c7..dce77af8a2 100644 --- a/packages/shared/common/package.json +++ b/packages/shared/common/package.json @@ -20,6 +20,7 @@ ], "scripts": { "test": "npx jest --ci", + "build-types": "npx tsc --declaration true --emitDeclarationOnly true --declarationDir dist", "build": "npx tsc", "clean": "npx tsc --build --clean", "lint": "npx eslint . --ext .ts", diff --git a/packages/shared/mocks/package.json b/packages/shared/mocks/package.json index 47ce02e418..aa8ceb63f6 100644 --- a/packages/shared/mocks/package.json +++ b/packages/shared/mocks/package.json @@ -24,7 +24,8 @@ ], "scripts": { "test": "", - "build": "npx tsc", + "build-types": "yarn workspace @launchdarkly/js-sdk-common build-types", + "build": "yarn build-types && npx tsc", "clean": "npx tsc --build --clean", "lint": "npx eslint --ext .ts", "lint:fix": "yarn run lint -- --fix"