Skip to content

feat: updated versions #59

feat: updated versions

feat: updated versions #59

Workflow file for this run

name: gh-page
on:
push:
branches:
- master
defaults:
run:
shell: bash
working-directory: packages/example
jobs:
publish-example-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
# Проверяем изменилась ли версия
- name: Set NEED_PUBLISH
run: echo "NEED_PUBLISH=$(./need-publish.sh)" >> $GITHUB_ENV
- name: Install and Build - ⌛&🏗️
if: ${{ env.NEED_PUBLISH }}
run: |
yarn install --frozen-lockfile
yarn run build
- name: Deploy 🚀.🚀.🚀
if: ${{ env.NEED_PUBLISH }}
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: packages/example/dist # The folder the action should deploy.
CLEAN: true