mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
e8081f6691
- we were using `ubuntu-latest`, which is an alias for 18.04, but there's an increasingly likely chance that the default becomes 20.04 soon. - we don't officially support 20.04 yet, so we want to pin to our supported version until we're ready
23 lines
543 B
YAML
23 lines
543 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
|
|
- 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
|