This repository has been archived by the owner on Sep 10, 2023. It is now read-only.
chore(deps): update dependency date-fns to v2.30.0 (#636) #1887
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 | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: ["12.14.1"] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
name: node.js ${{ matrix.node }} test in ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Environment | |
run: | | |
node -v | |
npm -v | |
yarn --version | |
- name: Install | |
run: yarn | |
- name: Linter | |
run: yarn run lint | |
- name: Formater | |
run: yarn run format | |
- name: Compile | |
run: yarn run build | |
- uses: actions/upload-artifact@v3 | |
if: runner.os == 'linux' | |
with: | |
name: dist | |
path: ./dist | |
- name: Deploy | |
if: runner.os == 'linux' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
uses: JamesIves/github-pages-deploy-action@v4.4.1 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: dist # The folder the action should deploy. |