From 35de56e47006fa4a5fa1410db31b01c15705f143 Mon Sep 17 00:00:00 2001 From: Stig Ofstad Date: Fri, 30 Sep 2022 08:34:41 +0200 Subject: [PATCH] feature: upload package tar balls --- .github/workflows/on-master-push.yaml | 38 ++++++++++++++++++++++++++ packages/blueprint/tsconfig.json | 5 +++- packages/default-pdf/tsconfig.json | 5 +++- packages/default-preview/tsconfig.json | 5 +++- packages/dmt-core/tsconfig.json | 5 +++- packages/job/tsconfig.json | 5 +++- packages/mermaid/tsconfig.json | 5 +++- packages/yaml-view/tsconfig.json | 5 +++- tsconfig.json | 2 -- 9 files changed, 66 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/on-master-push.yaml diff --git a/.github/workflows/on-master-push.yaml b/.github/workflows/on-master-push.yaml new file mode 100644 index 000000000..591a0e33b --- /dev/null +++ b/.github/workflows/on-master-push.yaml @@ -0,0 +1,38 @@ +on: + workflow_dispatch: + push: + branches: + - master + - ci/publish-packages # TODO: Remove + + +jobs: + tests: + uses: ./.github/workflows/tests.yaml + + create-package-artifact: + runs-on: ubuntu-latest + strategy: + matrix: + package: [ blueprint, default-pdf, default-preview, job, mermaid, yaml-view ] + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v2 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + + - name: Create package distribution + run: | + cd packages/${{ matrix.package }} + yarn install + yarn tsc + + - name: Upload package + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.package }} + path: packages/${{ matrix.package }}/dist/ + retention-days: 365 + if-no-files-found: error diff --git a/packages/blueprint/tsconfig.json b/packages/blueprint/tsconfig.json index 4082f16a5..b4e69ae1f 100644 --- a/packages/blueprint/tsconfig.json +++ b/packages/blueprint/tsconfig.json @@ -1,3 +1,6 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "dist" + } } diff --git a/packages/default-pdf/tsconfig.json b/packages/default-pdf/tsconfig.json index 596e2cf72..e675c412d 100644 --- a/packages/default-pdf/tsconfig.json +++ b/packages/default-pdf/tsconfig.json @@ -1,4 +1,7 @@ { "extends": "../../tsconfig.json", - "include": ["src"] + "include": ["src"], + "compilerOptions": { + "outDir": "dist" + } } diff --git a/packages/default-preview/tsconfig.json b/packages/default-preview/tsconfig.json index 4082f16a5..b4e69ae1f 100644 --- a/packages/default-preview/tsconfig.json +++ b/packages/default-preview/tsconfig.json @@ -1,3 +1,6 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "dist" + } } diff --git a/packages/dmt-core/tsconfig.json b/packages/dmt-core/tsconfig.json index 4082f16a5..b4e69ae1f 100644 --- a/packages/dmt-core/tsconfig.json +++ b/packages/dmt-core/tsconfig.json @@ -1,3 +1,6 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "dist" + } } diff --git a/packages/job/tsconfig.json b/packages/job/tsconfig.json index 4082f16a5..b4e69ae1f 100644 --- a/packages/job/tsconfig.json +++ b/packages/job/tsconfig.json @@ -1,3 +1,6 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "dist" + } } diff --git a/packages/mermaid/tsconfig.json b/packages/mermaid/tsconfig.json index 4082f16a5..b4e69ae1f 100644 --- a/packages/mermaid/tsconfig.json +++ b/packages/mermaid/tsconfig.json @@ -1,3 +1,6 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "dist" + } } diff --git a/packages/yaml-view/tsconfig.json b/packages/yaml-view/tsconfig.json index 4082f16a5..b4e69ae1f 100644 --- a/packages/yaml-view/tsconfig.json +++ b/packages/yaml-view/tsconfig.json @@ -1,3 +1,6 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "dist" + } } diff --git a/tsconfig.json b/tsconfig.json index 693264af7..f9c9b9711 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,10 @@ { "compilerOptions": { - "outDir": "dist", "lib": ["dom", "dom.iterable", "esnext"], "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, "isolatedModules": true, - "noEmit": true, "downlevelIteration": true, "declaration": true, "declarationMap": true,