Skip to content

Fixed vite vulnerability #64

Fixed vite vulnerability

Fixed vite vulnerability #64

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
USERNAME: solarlime
GITHUB_REPO: github-deployment-cleaner
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# 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@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run lint
- name: Testing
run: npm run test:no-watch
- name: Building
run: npm run build
- name: Deploy to GitHub Pages
run: |
set -e
cd dist
git init
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m 'deployment'
git push -f https://${{ secrets.GH_TOKEN }}@github.com/${{ env.USERNAME }}/${{ env.GITHUB_REPO }}.git master:gh-pages
echo "Deployed successfully!"