Skip to content

Update CSS preprocessors #1855

Update CSS preprocessors

Update CSS preprocessors #1855

Workflow file for this run

name: Edition
on:
pull_request:
push:
branches:
- main
- 'renovate/*'
paths:
- 'packages/edition/**'
- '.github/workflows/edition.yml'
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: 24
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
- run: pnpm test:ci --theme edition
required-checks-pass:
name: Required checks pass
if: always()
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Verify all required jobs succeeded
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Deploy theme
uses: TryGhost/action-deploy-theme@b1ff2a5eeac1d5438a0aab35eb996fe4010d889e # v2
with:
api-url: ${{ secrets.EDITION_GHOST_ADMIN_API_URL }}
api-key: ${{ secrets.EDITION_GHOST_ADMIN_API_KEY }}
working-directory: packages/edition
subtree:
name: Subtree
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
- uses: nxtlvlsoftware/git-subtree-action@3d555981a570a2275a91c07b04b38d5e90d48c05 # 1.1
with:
repo: 'TryGhost/Edition'
path: 'packages/edition'
deploy_key: ${{secrets.EDITION_GITHUB_DEPLOY_KEY}}
force: true