Ghost/.github/workflows/release.yml

27 lines
628 B
YAML
Raw Normal View History

2020-03-31 20:25:02 +03:00
name: Release
on:
push:
tags:
- '*'
2020-03-31 20:25:02 +03:00
jobs:
automate:
runs-on: ubuntu-18.04
2020-03-31 20:25:02 +03:00
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2020-03-31 20:25:02 +03:00
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
2021-01-04 08:09:55 +03:00
- uses: actions/setup-node@v2
with:
node-version: '12.18.0'
2020-03-31 20:25:02 +03: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@master