Skip to content

Bump vite from 5.2.7 to 5.4.6 #20

Bump vite from 5.2.7 to 5.4.6

Bump vite from 5.2.7 to 5.4.6 #20

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: deploy to github pages
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
pages: write
id-token: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build_test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install, yarn build
id: build
run: |
npm install
npm run build
sed -i 's/\/asset/\.\/asset/g' ./dist/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2