Skip to content

10.1.0

10.1.0 #14

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
inputs:
skip-npm:
type: boolean
description: Skip NPM release
skip-directory:
type: boolean
description: Skip directory website deployment
release:
types: [created]
jobs:
npm:
name: NPM
runs-on: ubuntu-latest
if: github.event.inputs.skip-npm != 'true'
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".node-version"
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
directory:
name: Directory website
runs-on: ubuntu-latest
if: github.event.inputs.skip-directory != 'true'
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".node-version"
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
working-directory: directory
- name: Build directory
run: yarn build
working-directory: directory
- name: Publish static assets to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
branch: gh-pages
folder: directory/build