Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Include package.json files in UI artifacts (#2828)

Koen45db510e2f63
diff --git a/.github/workflows/install-dist.yml b/.github/workflows/install-dist.yml
index aa5083e3a..23a769030 100644
--- a/.github/workflows/install-dist.yml
+++ b/.github/workflows/install-dist.yml
@@ -92,6 +92,17 @@ jobs:
ui/component/**/dist
ui/component/**/lib
ui/component/**/tsconfig.tsbuildinfo
+ ui/component/**/package.json
+
+ - name: Archive UI app build
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: or-ui-app-build
+ if-no-files-found: error
+ path: |
+ ui/app/**/dist
+ ui/app/**/lib
+ ui/app/**/package.json
- name: Archive MDI fonts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml
index b81575c62..566415a24 100644
--- a/.github/workflows/publish-npm.yml
+++ b/.github/workflows/publish-npm.yml
@@ -15,13 +15,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: or-ui-component-build
path: ui/component
+
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ with:
+ name: or-ui-app-build
+ path: ui/app
+
- name: Update when the `tsbuildinfo` files were last modified to 'now'
run: find . -name "*.tsbuildinfo" -exec touch {} +
+
- run: yarn --immutable
+
- name: Publish to NPM
run: |
echo 'npmRegistries:' >> .yarnrc.yml