2020-03-31 18:25:02 +01:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2020-04-06 10:49:17 +01:00
|
|
|
- '*'
|
2020-03-31 18:25:02 +01:00
|
|
|
jobs:
|
|
|
|
automate:
|
2020-08-18 13:05:15 +01:00
|
|
|
runs-on: ubuntu-18.04
|
2020-03-31 18:25:02 +01:00
|
|
|
env:
|
2021-07-12 13:05:39 +01:00
|
|
|
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-09-28 16:43:45 +01:00
|
|
|
RELEASE_NOTIFICATION_URL: ${{ secrets.RELEASE_NOTIFICATION_URL }}
|
2020-04-07 08:19:17 +01:00
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
2020-03-31 18:25:02 +01:00
|
|
|
FORCE_COLOR: 1
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: true
|
2021-01-04 05:09:55 +00:00
|
|
|
- uses: actions/setup-node@v2
|
2020-11-02 08:48:05 +00:00
|
|
|
with:
|
2021-05-10 20:39:04 +01:00
|
|
|
node-version: '14'
|
2020-11-02 08:48:05 +00:00
|
|
|
|
2020-03-31 18:25:02 +01:00
|
|
|
- run: yarn
|
2020-04-03 12:44:59 +01:00
|
|
|
- run: grunt release --skip-tests
|
2020-04-07 11:59:18 +01:00
|
|
|
- run: npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
|
|
|
|
- run: npm publish
|
2020-06-11 17:36:45 +01:00
|
|
|
- uses: tryghost/action-ghost-release@master
|