Skip to content

Merge branch 'development' of https://github.com/damiankorcz/Prism-Th… #57

Merge branch 'development' of https://github.com/damiankorcz/Prism-Th…

Merge branch 'development' of https://github.com/damiankorcz/Prism-Th… #57

name: Build Prism Theme and Snippets
on:
push:
branches: [ "development" ]
pull_request:
branches: [ "development" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run Theme Build script
run: pnpm run buildTheme --if-present
- name: Run Mark Highlight System Snippet Build script
run: pnpm run buildSnipMHS --if-present
- name: Run Callout Snippet Build script
run: pnpm run buildSnipC --if-present
- name: Pushing the Built Files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated Build of Theme and Snippet files
branch: development