From 74e41b904caa323844befda6a3062f424b3aba43 Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 2 Oct 2024 21:46:22 -0300 Subject: [PATCH] fix: create remote files before try to run build task --- .github/workflows/autodesk.ci.yml | 8 ++++++++ .github/workflows/matterport.ci.yml | 8 ++++++++ .github/workflows/react.ci.yml | 8 ++++++++ .github/workflows/three.ci.yml | 9 +++++++++ .github/workflows/yjs.ci.yml | 8 ++++++++ 5 files changed, 41 insertions(+) diff --git a/.github/workflows/autodesk.ci.yml b/.github/workflows/autodesk.ci.yml index 0c05558..9004d59 100644 --- a/.github/workflows/autodesk.ci.yml +++ b/.github/workflows/autodesk.ci.yml @@ -30,6 +30,14 @@ jobs: env: NPM_CONFIG_USERCONFIG: .npmrc.ci NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create a .version.js file + run: | + touch packages/realtime/.version.js && echo "echo \"export const version = 'test'\" > packages/realtime/.version.js" | bash - + touch packages/sdk/.version.js && echo "echo \"export const version = 'test'\" > packages/sdk/.version.js" | bash - + - name: Create a .remote-config.js file + run: | + touch packages/realtime/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com' }};\" > packages/realtime/.remote-config.js" | bash - + touch packages/sdk/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com', conferenceLayerUrl: 'https://video-frame.superviz.com/lab/index.html'}};\" > .remote-config.js" | bash - - run: git config --global user.name SuperViz - run: git config --global user.email ci@superviz.com - name: Publish npm package diff --git a/.github/workflows/matterport.ci.yml b/.github/workflows/matterport.ci.yml index bf345ae..a9d725a 100644 --- a/.github/workflows/matterport.ci.yml +++ b/.github/workflows/matterport.ci.yml @@ -30,6 +30,14 @@ jobs: env: NPM_CONFIG_USERCONFIG: .npmrc.ci NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create a .version.js file + run: | + touch packages/realtime/.version.js && echo "echo \"export const version = 'test'\" > packages/realtime/.version.js" | bash - + touch packages/sdk/.version.js && echo "echo \"export const version = 'test'\" > packages/sdk/.version.js" | bash - + - name: Create a .remote-config.js file + run: | + touch packages/realtime/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com' }};\" > packages/realtime/.remote-config.js" | bash - + touch packages/sdk/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com', conferenceLayerUrl: 'https://video-frame.superviz.com/lab/index.html'}};\" > .remote-config.js" | bash - - run: git config --global user.name SuperViz - run: git config --global user.email ci@superviz.com - name: Publish npm package diff --git a/.github/workflows/react.ci.yml b/.github/workflows/react.ci.yml index 03b31ea..2115d1a 100644 --- a/.github/workflows/react.ci.yml +++ b/.github/workflows/react.ci.yml @@ -30,6 +30,14 @@ jobs: env: NPM_CONFIG_USERCONFIG: .npmrc.ci NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create a .version.js file + run: | + touch packages/realtime/.version.js && echo "echo \"export const version = 'test'\" > packages/realtime/.version.js" | bash - + touch packages/sdk/.version.js && echo "echo \"export const version = 'test'\" > packages/sdk/.version.js" | bash - + - name: Create a .remote-config.js file + run: | + touch packages/realtime/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com' }};\" > packages/realtime/.remote-config.js" | bash - + touch packages/sdk/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com', conferenceLayerUrl: 'https://video-frame.superviz.com/lab/index.html'}};\" > .remote-config.js" | bash - - run: git config --global user.name SuperViz - run: git config --global user.email ci@superviz.com - name: Publish npm package diff --git a/.github/workflows/three.ci.yml b/.github/workflows/three.ci.yml index 08a806a..3f1dc20 100644 --- a/.github/workflows/three.ci.yml +++ b/.github/workflows/three.ci.yml @@ -30,6 +30,15 @@ jobs: env: NPM_CONFIG_USERCONFIG: .npmrc.ci NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create a .version.js file + run: | + touch packages/realtime/.version.js && echo "echo \"export const version = 'test'\" > packages/realtime/.version.js" | bash - + touch packages/sdk/.version.js && echo "echo \"export const version = 'test'\" > packages/sdk/.version.js" | bash - + - name: Create a .remote-config.js file + run: | + touch packages/realtime/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com' }};\" > packages/realtime/.remote-config.js" | bash - + touch packages/sdk/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com', conferenceLayerUrl: 'https://video-frame.superviz.com/lab/index.html'}};\" > .remote-config.js" | bash - + - run: git config --global user.name SuperViz - run: git config --global user.email ci@superviz.com - name: Publish npm package diff --git a/.github/workflows/yjs.ci.yml b/.github/workflows/yjs.ci.yml index afd2557..00ce9ca 100644 --- a/.github/workflows/yjs.ci.yml +++ b/.github/workflows/yjs.ci.yml @@ -31,6 +31,14 @@ jobs: env: NPM_CONFIG_USERCONFIG: .npmrc.ci NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create a .version.js file + run: | + touch packages/realtime/.version.js && echo "echo \"export const version = 'test'\" > packages/realtime/.version.js" | bash - + touch packages/sdk/.version.js && echo "echo \"export const version = 'test'\" > packages/sdk/.version.js" | bash - + - name: Create a .remote-config.js file + run: | + touch packages/realtime/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com' }};\" > packages/realtime/.remote-config.js" | bash - + touch packages/sdk/.remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com', conferenceLayerUrl: 'https://video-frame.superviz.com/lab/index.html'}};\" > .remote-config.js" | bash - - run: git config --global user.name SuperViz - run: git config --global user.email ci@superviz.com - name: Publish npm package