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:
|
2020-08-18 15:05:15 +03:00
|
|
|
runs-on: ubuntu-18.04
|
2020-03-31 20:25:02 +03:00
|
|
|
env:
|
2021-07-12 15:05:39 +03:00
|
|
|
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-09-28 18:43:45 +03:00
|
|
|
RELEASE_NOTIFICATION_URL: ${{ secrets.RELEASE_NOTIFICATION_URL }}
|
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:
|
2022-03-01 21:52:51 +03:00
|
|
|
- uses: actions/checkout@v3
|
2020-03-31 20:25:02 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: true
|
2022-02-25 12:13:29 +03:00
|
|
|
- uses: actions/setup-node@v3
|
2021-11-25 11:07:45 +03:00
|
|
|
env:
|
|
|
|
FORCE_COLOR: 0
|
2020-11-02 11:48:05 +03:00
|
|
|
with:
|
2021-05-10 22:39:04 +03:00
|
|
|
node-version: '14'
|
2021-11-30 11:01:22 +03:00
|
|
|
cache: yarn
|
2020-11-02 11:48:05 +03:00
|
|
|
|
2020-03-31 20:25:02 +03:00
|
|
|
- run: yarn
|
2020-04-03 14:44:59 +03:00
|
|
|
- run: grunt release --skip-tests
|
2020-04-07 13:59:18 +03:00
|
|
|
- run: npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
|
|
|
|
- run: npm publish
|
2022-01-11 18:35:00 +03:00
|
|
|
- uses: tryghost/action-ghost-release@main
|