fix(deps): update dependency preact to v10.25.2 #2057
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
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 |