Skip to content

BETA 1.0.0

BETA 1.0.0 #1

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
cache: 'npm'
# Framework Build
- name: Install Framework Dependencies
run: npm ci
- name: Build Framework
run: npm run build
# Website Build
- name: Install Website Dependencies
working-directory: website
run: npm ci
- name: Build Website
working-directory: website
run: npm run build
env:
NODE_ENV: production
- name: Run Tests
run: npm test
- name: Deploy Website to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: website/dist
clean: true
publish:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}