-
Notifications
You must be signed in to change notification settings - Fork 57
59 lines (50 loc) · 1.96 KB
/
release-please.yaml
File metadata and controls
59 lines (50 loc) · 1.96 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: release-please
on:
push:
branches:
- main
permissions:
id-token: write # Required for OIDC authentication with npm
contents: write # to create release commit (google-github-actions/release-please-action)
pull-requests: write # to create release PR (google-github-actions/release-please-action)
jobs:
release-please:
runs-on: ubuntu-latest
steps:
# The "release" step invokes on every merge to 'main' branch
# and collects pending changes in pending release PR.
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
# Steps below publish released packages to npm.
# They only trigger after release-please PR from previous step is merged to main.
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
if: ${{ fromJson(steps.release.outputs.releases_created) }}
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
scope: '@aws'
if: ${{ fromJson(steps.release.outputs.releases_created) }}
- name: Compile and test packages
run: |
npm clean-install
npm run compile
npm run test
if: ${{ fromJson(steps.release.outputs.releases_created) }}
- name: Publish Chat Client UI Types to npm
run: npm run pub --workspace chat-client-ui-types
if: ${{ steps.release.outputs['chat-client-ui-types--release_created'] }}
- name: Publish Runtimes to npm
run: npm run pub --workspace runtimes
if: ${{ steps.release.outputs['runtimes--release_created'] }}
- name: Publish Types to npm
run: npm run pub --workspace types
if: ${{ steps.release.outputs['types--release_created'] }}