-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (55 loc) · 1.92 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
55
56
57
name: Release please
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
name: Release please
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- uses: bahmutov/npm-install@v1
if: ${{ steps.release.outputs.release_created }}
- name: Publish npm package
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@v0.2.1
with:
project_id: ${{ secrets.GCP_PROJECT }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
if: ${{ steps.release.outputs.release_created }}
- run: yarn run docs
if: ${{ steps.release.outputs.release_created }}
- name: Checkout editor.dev for api doc generation in Dockerfile
uses: actions/checkout@v2
with:
repository: blinkk/editor.dev
path: connector
if: ${{ steps.release.outputs.release_created }}
- name: Install npm to generate docs for connector.
uses: bahmutov/npm-install@v1
with:
working-directory: connector
if: ${{ steps.release.outputs.release_created }}
- run: cd connector && yarn run docs && mv api/connector ../api/
if: ${{ steps.release.outputs.release_created }}
- run: yarn run screenshot:docs
if: ${{ steps.release.outputs.release_created }}
- name: Deploy to prod
run: make build-and-deploy-prod-tag tag=${{ steps.release.outputs.tag_name }}
if: ${{ steps.release.outputs.release_created }}