Skip to content

lock version for now #93

lock version for now

lock version for now #93

# This workflow does a clean install, runs tests, builds to build folder, deploys to pages
# More info:
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test-build-deploy:
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install and Test
run: |
npm ci
npm test
- if: github.ref == 'refs/heads/master'
name: Install client deps and Build 🔧
run: |
cd client-react-carbon
npm ci
cd ..
npm run gh-pages
- if: github.ref == 'refs/heads/master'
name: Deploy to Pages 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build