Fix npmrc file and build commands
This commit is contained in:
parent
0c24991f21
commit
c7fa4c2e9e
|
|
@ -3,9 +3,9 @@ name: Build Lens
|
|||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
- '**/README.md'
|
||||
- "**/README.md"
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
|
@ -50,7 +50,7 @@ jobs:
|
|||
if [ "${CSC_KEY_PASSWORD}" = "" ]; then
|
||||
unset CSC_KEY_PASSWORD
|
||||
fi
|
||||
yarn
|
||||
yarn run all:install
|
||||
yarn run build
|
||||
yarn run build:app
|
||||
for file in packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.dmg; do
|
||||
|
|
@ -68,7 +68,7 @@ jobs:
|
|||
fi
|
||||
done
|
||||
elif [ "$RUNNER_OS" == "Linux" ]; then
|
||||
yarn
|
||||
yarn run all:install
|
||||
yarn run build
|
||||
yarn run build:app
|
||||
cp packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.x86_64.AppImage releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage
|
||||
|
|
@ -78,7 +78,7 @@ jobs:
|
|||
cp packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.arm64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.deb
|
||||
cp packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.aarch64.rpm releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.rpm
|
||||
else
|
||||
yarn
|
||||
yarn run all:install
|
||||
yarn run build
|
||||
yarn run build:app
|
||||
cp packages/open-lens/dist/OpenLens*.exe releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe
|
||||
|
|
|
|||
|
|
@ -15,3 +15,8 @@ if (process.platform != "win32") {
|
|||
}
|
||||
|
||||
fs.writeFileSync('./lens/packages/open-lens/package.json', JSON.stringify(packagejson));
|
||||
let npmrc = fs.readFileSync('./.npmrc','utf-8');
|
||||
npmrc = npmrc.replace("disturl \"","disturl = \"")
|
||||
npmrc = npmrc.replace("target \"","target = \"")
|
||||
npmrc = npmrc.replace("runtime \"","runtime = \"")
|
||||
fs.writeFileSync('./.npmrc',npmrc)
|
||||
|
|
|
|||
Loading…
Reference in New Issue