diff --git a/.github/workflows/plugin-npm-release.yml b/.github/workflows/plugin-npm-release.yml index c7819ad822de..9a58ff165369 100644 --- a/.github/workflows/plugin-npm-release.yml +++ b/.github/workflows/plugin-npm-release.yml @@ -9,6 +9,7 @@ on: - ".github/workflows/plugin-npm-release.yml" - "extensions/**" - "package.json" + - "packages/normalization-core/**" - "scripts/generate-npm-package-lock.mjs" - "scripts/generate-npm-package-lock.mts" - "scripts/lib/npm-publish-plan.mjs" @@ -340,7 +341,9 @@ jobs: ref: ${{ github.workflow_sha }} path: .release-tooling fetch-depth: 1 - sparse-checkout: scripts + sparse-checkout: | + packages/normalization-core + scripts - name: Setup Node environment uses: ./.github/actions/setup-node-env diff --git a/test/scripts/plugin-npm-extended-stable-workflow.test.ts b/test/scripts/plugin-npm-extended-stable-workflow.test.ts index b14dbb609c0a..1efb5c798b2b 100644 --- a/test/scripts/plugin-npm-extended-stable-workflow.test.ts +++ b/test/scripts/plugin-npm-extended-stable-workflow.test.ts @@ -114,7 +114,7 @@ describe("plugin npm extended-stable workflow", () => { expect(preflightCheckout.with).toMatchObject({ ref: "${{ github.workflow_sha }}", path: ".release-tooling", - "sparse-checkout": "scripts", + "sparse-checkout": "packages/normalization-core\nscripts\n", }); const previewCommand = step(parsed.jobs?.preview_plugin_pack, "Preview publish command").run; expect(previewCommand).toContain(".release-tooling/scripts/plugin-npm-publish.sh");