Bump vite from 5.4.2 to 5.4.6 in the npm_and_yarn group (#231) #143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: {} | |
name: Publish to GitHub Pages | |
jobs: | |
deploy_ui: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: main | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
cache-dependency-path: 'main/package-lock.json' | |
- name: Install dependencies | |
run: | | |
cd main | |
npm ci | |
- name: Build | |
run: | | |
cd main | |
NODE_ENV=production npm run build | |
- uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
path: pages | |
- name: Commit Build to gh-pages | |
run: | | |
cp -R main/dist/* pages/ | |
cd pages | |
HAS_CHANGES=$(git diff) | |
if [ -n "$HAS_CHANGES" ]; then | |
git config user.name 'GH Actions Bot' | |
git config user.email 'actions.bot@example.com' | |
git add . | |
git commit -m 'Update gh-pages site code from main branch' | |
git push | |
fi |