2020-03-31 12:25:02 -05:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2020-04-06 04:49:17 -05:00
|
|
|
- '*'
|
2020-03-31 12:25:02 -05:00
|
|
|
jobs:
|
|
|
|
automate:
|
2020-08-18 07:05:15 -05:00
|
|
|
runs-on: ubuntu-18.04
|
2020-03-31 12:25:02 -05:00
|
|
|
env:
|
2021-07-12 07:05:39 -05:00
|
|
|
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-09-28 10:43:45 -05:00
|
|
|
RELEASE_NOTIFICATION_URL: ${{ secrets.RELEASE_NOTIFICATION_URL }}
|
2020-04-07 02:19:17 -05:00
|
|
|
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
|
2021-11-25 03:07:45 -05:00
|
|
|
env:
|
|
|
|
FORCE_COLOR: 0
|
2020-11-02 03:48:05 -05:00
|
|
|
with:
|
2021-05-10 14:39:04 -05:00
|
|
|
node-version: '14'
|
2021-11-30 03:01:22 -05:00
|
|
|
cache: yarn
|
2020-11-02 03:48:05 -05:00
|
|
|
|
2020-03-31 12:25:02 -05:00
|
|
|
- run: yarn
|
2020-04-03 06:44:59 -05:00
|
|
|
- run: grunt release --skip-tests
|
2020-04-07 05:59:18 -05:00
|
|
|
- run: npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
|
|
|
|
- run: npm publish
|
2022-01-11 10:35:00 -05:00
|
|
|
- uses: tryghost/action-ghost-release@main
|