-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 856 Bytes
/
ci.yml
File metadata and controls
33 lines (28 loc) · 856 Bytes
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
# This workflow will do a clean install of node dependencies, build the source code
name: CI
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 9 2 * *'
workflow_dispatch:
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: threeal/setup-yarn-action@v2.0.0
- name: Build Step
run: yarn build:lib
- name: Run Semantic Release
run: yarn semantic-release
env:
GH_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release to GitHub Pages
run: yarn deploy --no-silent
env:
GH_TOKEN: ${{ github.token }}