Skip to content

Lock file maintenance #1545

Lock file maintenance

Lock file maintenance #1545

Workflow file for this run

name: Taste
on:
pull_request:
push:
branches:
- main
- 'renovate/*'
paths:
- 'packages/taste/**'
- '.github/workflows/taste.yml'
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- run: yarn
- run: yarn test:ci --theme taste
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Deploy theme
uses: TryGhost/action-deploy-theme@a0ee1147d15641db25681e54549c4db9a53c2629 # v1
with:
api-url: ${{ secrets.TASTE_GHOST_ADMIN_API_URL }}
api-key: ${{ secrets.TASTE_GHOST_ADMIN_API_KEY }}
working-directory: packages/taste
subtree:
name: Subtree
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- uses: nxtlvlsoftware/git-subtree-action@3d555981a570a2275a91c07b04b38d5e90d48c05 # 1.1
with:
repo: 'TryGhost/Taste'
path: 'packages/taste'
deploy_key: ${{secrets.TASTE_GITHUB_DEPLOY_KEY}}
force: true