core: Publish web packages. (#14648)

This commit is contained in:
Teffen Ellis
2025-05-26 14:25:20 +02:00
committed by GitHub
parent 054dfda73f
commit a1fe471a59

View File

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