Ghost/.github/workflows/canary.yml
Daniel Lockyer f4b48c1373 🔥 Added support for Node 16
refs https://github.com/TryGhost/Toolbox/issues/71

- Node 16 is now LTS so we're adding support in Ghost
- we're also bumping the minimum Node 14 version to 14.17.0 so we can merge
  dependencies who have higher Node 14 requirements than current
- this commit adds Node 16 to the `package.json` engines and to CI
- also bumps all dependencies that needed new versions to add Node 16
  support
2021-10-27 11:39:42 +01:00

43 lines
1.3 KiB
YAML

name: Canary Build
on: workflow_dispatch
env:
FORCE_COLOR: 1
jobs:
canary:
runs-on: ubuntu-18.04
name: Canary
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-node@v2
with:
node-version: '14.17.0'
- name: Set up Git
run: |
git config --global pull.rebase true
git config --global user.name "Ghost CI"
git config --global user.email "ghost@example.com"
- run: yarn
- run: yarn main
- run: echo "ghost_hash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- run: echo "ghost_admin_hash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
working-directory: core/client
- run: if [ -n "$(git status --porcelain)" ]; then git add core/client content/themes/casper && git commit -m "Updated Ghost-Admin and Casper"; fi
- run: npm version preminor --preid="pre.$ghost_hash.$ghost_admin_hash"
- run: npm version preminor --preid="pre.$ghost_hash.$ghost_admin_hash"
working-directory: core/client
- run: grunt release --skip-update
- uses: actions/upload-artifact@v2
with:
name: ghost-canary
path: .dist/release/*
retention-days: 7