Skip to content

chore: change verbiage of banner (#42) #93

chore: change verbiage of banner (#42)

chore: change verbiage of banner (#42) #93

Workflow file for this run

name: 'tinlake.js'
on:
push:
branches:
- main
pull_request:
paths:
- 'tinlake.js/**'
defaults:
run:
working-directory: tinlake.js
jobs:
test:
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
# Cache
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
# Run
- run: yarn lint
- run: yarn build
# Test (only the solver tests)
- run: yarn test --grep solver
deploy:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
# Setup
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
registry-url: 'https://registry.npmjs.org'
# Cache
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
# Run
- run: yarn build
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}