2020-03-31 20:25:02 +03:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2020-04-06 12:49:17 +03:00
|
|
|
- '*'
|
2020-03-31 20:25:02 +03:00
|
|
|
jobs:
|
|
|
|
automate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
2020-04-07 10:19:17 +03:00
|
|
|
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
|
|
|
|
- run: yarn
|
2020-04-03 14:44:59 +03:00
|
|
|
|
|
|
|
- run: grunt release --skip-tests
|
2020-04-06 17:08:17 +03:00
|
|
|
- uses: tryghost/action-ghost-release@master
|
2020-04-07 13:59:18 +03:00
|
|
|
|
|
|
|
- run: npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
|
|
|
|
- run: npm publish
|