Skip to content

chore(deps): update dependency eslint-plugin-react to v7.37.2 #2043

chore(deps): update dependency eslint-plugin-react to v7.37.2

chore(deps): update dependency eslint-plugin-react to v7.37.2 #2043

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/[email protected]
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