0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/.github/workflows/release.yml

31 lines
752 B
YAML
Raw Normal View History

2020-03-31 12:25:02 -05:00
name: Release
on:
push:
tags:
- '*'
2020-03-31 12:25:02 -05:00
jobs:
automate:
runs-on: ubuntu-18.04
2020-03-31 12:25:02 -05:00
env:
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NOTIFICATION_URL: ${{ secrets.RELEASE_NOTIFICATION_URL }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2020-03-31 12:25:02 -05:00
FORCE_COLOR: 1
steps:
2022-03-01 13:52:51 -05:00
- uses: actions/checkout@v3
2020-03-31 12:25:02 -05:00
with:
fetch-depth: 0
submodules: true
2022-02-25 04:13:29 -05:00
- uses: actions/setup-node@v3
env:
FORCE_COLOR: 0
with:
node-version: '14'
cache: yarn
2020-03-31 12:25:02 -05:00
- 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@main