Skip to content

Commit

Permalink
Release 2.0.99
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Jun 21, 2024
1 parent 58a7bc5 commit 7676b31
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,24 @@ jobs:
with:
node-version: 20.x
- name: Install NPM packages
run: |
yarn global add pnpm
pnpm install
run: yarn install

- name: Build project
run: |
pnpm buildgh
yarn buildgh
sed -i 's/ <!\-\- <base href\=\"\%PUBLIC_URL\%\/\"> \-\->/ <base href\=\"\%PUBLIC_URL\%\/\">/g' ./build/index.html
- name: Build storybook
continue-on-error: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pnpm build-storybookgh -o ./build/docs
yarn build-storybookgh -o ./build/docs
cp ./build/docs/*.woff ./build/docs/static/css
cp ./build/docs/*.woff2 ./build/docs/static/css
#- name: Run tests
# run: pnpm test
# run: yarn test

- name: Upload production-ready build files
uses: actions/upload-artifact@v2
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build-hass-addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install Node Modules
run: |
yarn add global pnpm
pnpm install
run: yarn
- name: Build project Hass
env:
release_version: ${{ steps.package-version.outputs.current-version}}
REACT_APP_VERSION: ${{ steps.package-version.outputs.current-version}}
run: pnpm buildhass
run: yarn buildhass
- name: Preparing Archive
run: |
mv build ledfx_frontend_hass_dev
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,13 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install Node Modules
run: |
yarn add global pnpm
pnpm install
yarn install
- name: Build project
env:
release_version: ${{ steps.package-version.outputs.current-version}}
REACT_APP_VERSION: ${{ steps.package-version.outputs.current-version}}
run: pnpm build
run: yarn build
- name: Preparing Archive
run: |
mv build ledfx_frontend_v2
Expand Down Expand Up @@ -113,7 +112,7 @@ jobs:
env:
release_version: ${{ steps.package-version.outputs.current-version}}
REACT_APP_VERSION: ${{ steps.package-version.outputs.current-version}}
run: pnpm buildhass
run: yarn buildhass
- name: Preparing Archive
run: |
mv build ledfx_frontend_hass
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"postbuildgh": "rm -rf build/app && rm -rf build/preload.js && rm -rf build/renderer.js && rm -rf build/electron.js",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "pnpm buildgh",
"predeploy": "yarn buildgh",
"deploy": "gh-pages -d build",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"packs": "electron-builder --dir",
Expand Down

0 comments on commit 7676b31

Please sign in to comment.