Skip to content

Merge pull request #12 from Availity/docs/uikit #12

Merge pull request #12 from Availity/docs/uikit

Merge pull request #12 from Availity/docs/uikit #12

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: Publish Release
on:
push:
branches: [source]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: source
token: ${{ secrets.BOT_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: 18
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
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: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- run: git config --global user.email ${{ secrets.GH_EMAIL }}
- run: git config --global user.name ${{ secrets.GH_USER }}
- run: yarn build
- uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: master
build_dir: build
commit_message: deployed docs
committer: ${{ secrets.GH_USER }} ${{ secrets.GH_EMAIL }}
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}