diff --git a/.github/workflows/packages-npm-publish.yml b/.github/workflows/packages-npm-publish.yml index b1b4ba5c6e..a2486a397f 100644 --- a/.github/workflows/packages-npm-publish.yml +++ b/.github/workflows/packages-npm-publish.yml @@ -17,27 +17,28 @@ jobs: fail-fast: false matrix: package: - - docusaurus-config - - eslint-config - - prettier-config - - tsconfig + - packages/docusaurus-config + - packages/eslint-config + - packages/prettier-config + - packages/tsconfig + - packages/web/esbuild-plugin-live-reload steps: - uses: actions/checkout@v4 with: fetch-depth: 2 - uses: actions/setup-node@v4 with: - node-version-file: packages/${{ matrix.package }}/package.json + node-version-file: ${{ matrix.package }}/package.json registry-url: "https://registry.npmjs.org" - name: Get changed files id: changed-files uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c with: files: | - packages/${{ matrix.package }}/package.json + ${{ matrix.package }}/package.json - name: Publish package if: steps.changed-files.outputs.any_changed == 'true' - working-directory: packages/${{ matrix.package}} + working-directory: ${{ matrix.package }} run: | npm ci npm run build