chore(deps): bump word-wrap from 1.2.3 to 1.2.4 #232
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: Node CI | |
on: [push, pull_request] | |
env: | |
CI: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [10.x, 12.x, 14.x] | |
steps: | |
- name: install libgbm | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgbm-dev | |
- uses: actions/checkout@v1 | |
- name: get yarn cache | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: setup node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: ignore engines | |
run: yarn config set ignore-engines true | |
- name: install dependencies | |
run: yarn --pure-lockfile | |
- name: lint files | |
run: yarn lint | |
- name: typecheck project | |
run: yarn typecheck | |
- name: run unit tests | |
run: yarn test | |
- name: build project | |
run: yarn build | |
- name: check api documentation is up to date | |
run: yarn api:check | |
- name: run gatsby build integration tests | |
run: yarn test:e2e | |
- name: run gatsby develop integration tests | |
run: yarn test:e2e:develop | |
- name: upload build artifact | |
uses: actions/upload-artifact@v1 | |
if: matrix.node-version == '12.x' | |
with: | |
name: build | |
path: lib/ | |
release: | |
needs: [build] | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: get yarn cache | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: setup node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- name: install dependencies | |
run: yarn --pure-lockfile | |
- name: download build artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: build | |
path: lib/ | |
- name: release with semantic release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: yarn semantic-release |