Skip to content

Commit

Permalink
feature: upload package tar balls
Browse files Browse the repository at this point in the history
  • Loading branch information
soofstad committed Sep 30, 2022
1 parent 7a77327 commit 35de56e
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 9 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/on-master-push.yaml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion packages/blueprint/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "../../tsconfig.json"
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist"
}
}
5 changes: 4 additions & 1 deletion packages/default-pdf/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"include": ["src"]
"include": ["src"],
"compilerOptions": {
"outDir": "dist"
}
}
5 changes: 4 additions & 1 deletion packages/default-preview/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "../../tsconfig.json"
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist"
}
}
5 changes: 4 additions & 1 deletion packages/dmt-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "../../tsconfig.json"
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist"
}
}
5 changes: 4 additions & 1 deletion packages/job/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "../../tsconfig.json"
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist"
}
}
5 changes: 4 additions & 1 deletion packages/mermaid/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "../../tsconfig.json"
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist"
}
}
5 changes: 4 additions & 1 deletion packages/yaml-view/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "../../tsconfig.json"
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist"
}
}
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 35de56e

Please sign in to comment.