Skip to content

Merge pull request #29 from claabs/dependabot/npm_and_yarn/multi-014e… #40

Merge pull request #29 from claabs/dependabot/npm_and_yarn/multi-014e…

Merge pull request #29 from claabs/dependabot/npm_and_yarn/multi-014e… #40

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build and Publish
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "16.x"
- run: npm ci
- run: npm run lint
- run: npm run build:dist
- name: Deploy
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: dist
env:
GH_PAT: ${{ secrets.PERSONAL_ACCESS_TOKEN }}