Skip to content

chore: update npm dependencies #767

chore: update npm dependencies

chore: update npm dependencies #767

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Checkout
uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install
run: yarn install --frozen-lockfile
- name: Lint
run: yarn run lint
- name: Test
run: yarn run test
- name: Codecov
uses: codecov/codecov-action@v3
- name: Build
run: yarn run build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/**/*
docs:
name: Build docs
runs-on: ubuntu-latest
needs: ci
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Checkout
uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install
run: yarn install --frozen-lockfile
- name: Install Docs
run: (cd docs && yarn install --frozen-lockfile)
- name: Build docs
run: yarn run docs:build
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build
cname: resium.reearth.io