-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (38 loc) · 1.12 KB
/
release-published.yml
File metadata and controls
40 lines (38 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Release Published
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ runner.os }}-${{ matrix.node }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node }}-yarn-
- uses: actions/cache@v2
with:
path: ./api
key: ${{ runner.os }}-${{ matrix.node }}-openapi-${{ hashFiles('./.openapis') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node }}-openapi-
- run: yarn
- run: yarn openapi
- run: yarn build
- if: ${{ matrix.node == '14' }}
uses: scaffoldly/bump-version-action@v1
with:
action: postrelease
version-file: package.json
repo-token: ${{ secrets.GITHUB_TOKEN }}
major-tag: true