This repository has been archived by the owner on Feb 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (48 loc) · 1.52 KB
/
yarn.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Yarn CI
on: [push, pull_request]
jobs:
yarn:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2-beta
with:
node-version: "14"
registry-url: "https://registry.npmjs.org"
- name: Cache the dependency directories
uses: actions/cache@v2
with:
path: |
node_modules
key: yarn-ci
- name: Install dependencies with Yarn
run: yarn
- name: Build with Yarn
run: yarn build
- name: Install node-plantuml
run: npm install -g node-plantuml
- name: Build docs with Yarn
run: yarn build:diagram && yarn build:protocol && yarn build:docs
- name: Publish to npm
if: ${{ github.ref == 'refs/heads/main' }}
uses: pascalgn/npm-publish-action@1.3.6
with:
publish_command: "yarn"
commit_pattern: '.*\:\ Release (\S+)'
publish_args: "--access public"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish to GitHub pages
if: ${{ github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist/docs
CLEAN: true
GIT_CONFIG_NAME: bot
GIT_CONFIG_EMAIL: bot@example.com
SINGLE_COMMIT: true