Skip to content

chore(deps): update dependency vite to v3.2.10 [security] #2022

chore(deps): update dependency vite to v3.2.10 [security]

chore(deps): update dependency vite to v3.2.10 [security] #2022

name: Build and Test and Deploy
on:
push:
branches:
- KillYourMaster
pull_request:
jobs:
ci-cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Cache Node dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ env.cache-name }}-
${{ runner.os }}-node-
${{ runner.os }}-
- name: Cache Build artifacts
uses: actions/cache@v3
with:
path: ./.cache
key: ${{ runner.os }}-node-${{ hashFiles('**/*') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
- name: Test & build the application
run: |
npm ci
npm run deploy
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2
with:
publish-dir: './build'
production-branch: KillYourMaster
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-config-path: './netlify.toml'
deploy-message: 'Deploy from herschel666/tweexel-editor'
enable-pull-request-comment: false
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1