-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.51 KB
/
release-please.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: release-please-action
- uses: actions/checkout@v3
name: Checkout OpenAPI specification repository
with:
path: gentrace-openapi
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
cache: 'yarn'
cache-dependency-path: gentrace-openapi/yarn.lock
if: ${{ steps.release.outputs.release_created }}
- name: ⎔ Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8.7.0
if: ${{ steps.release.outputs.release_created }}
- name: Install and generate (OpenAPI)
run: |
cd $GITHUB_WORKSPACE/gentrace-openapi
yarn install
# Assumes that all generated repositories are at relative path "../<original-repo-name>"
yarn build
if: ${{ steps.release.outputs.release_created }}
- name: Run `openapi` command 🚀
uses: readmeio/rdme@v8
with:
rdme: openapi gentrace-openapi/dist/spec-resolved.yaml --key=${{ secrets.README_API_KEY }} --id=64f88f2f5a9aba001951f637
if: ${{ steps.release.outputs.release_created }}