CI #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: ${{ secrets.GH_TOKEN }} |