mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
489add6e5e
- The default Node version on GitHub Actions is moving to Node 14 and we want to keep building it on 12 for now, so this commit pins the version to 12.18.0
26 lines
628 B
YAML
26 lines
628 B
YAML
name: Release
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
jobs:
|
|
automate:
|
|
runs-on: ubuntu-18.04
|
|
env:
|
|
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
FORCE_COLOR: 1
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: true
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '12.18.0'
|
|
|
|
- run: yarn
|
|
- run: grunt release --skip-tests
|
|
- run: npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
|
|
- run: npm publish
|
|
- uses: tryghost/action-ghost-release@master
|