Skip to content

fix(deps): update all dependencies (major) #2560

fix(deps): update all dependencies (major)

fix(deps): update all dependencies (major) #2560

Workflow file for this run

name: Node.js CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js lts/*
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Install
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install
build:
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v4
- name: Use Node.js lts/*
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Install
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install
- name: Build
run: yarn run build
eslint:
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v4
- name: Use Node.js lts/*
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Install
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install
- name: Eslint
run: yarn run eslint
# tests:
# runs-on: ubuntu-latest
# needs: install
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js lts/*
# uses: actions/setup-node@v2
# with:
# node-version: lts/*
# - name: Cache node modules
# id: cache-nodemodules
# uses: actions/cache@v2
# env:
# cache-name: cache-node-modules
# with:
# path: |
# node_modules
# /home/runner/.cache/Cypress
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
# restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
# - name: Install
# if: steps.cache-nodemodules.outputs.cache-hit != 'true'
# run: yarn install
# - name: Tests
# uses: cypress-io/github-action@v2
# with:
# start: yarn start
# wait-on: http://localhost:3000
# env:
# CHOKIDAR_USEPOLLING: 1
# - name: Cypress artifacts
# if: ${{ failure() }}
# uses: actions/upload-artifact@v2
# with:
# name: Cypress artifacts
# path: cypress/*
deploy:
# needs: ['build', 'eslint', 'tests']
needs: ['build', 'eslint']
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- name: Use Node.js lts/*
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Install
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install
- name: Deploy
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn run deploy -u "github-actions-bot <support+actions@github.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: ['deploy']
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- name: Use Node.js lts/*
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Install
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install
- name: Publish
run: yarn run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}