-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.23 KB
/
ci_release-please.yml
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
name: Run release-please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
concurrency:
group: ci-release-please-group-${{ github.ref }}
cancel-in-progress: true
jobs:
ci_release-please:
runs-on: ubuntu-latest
outputs:
release-outputs: ${{ toJson(steps.release.outputs) }}
steps:
- id: release
uses: google-github-actions/release-please-action@v4
with:
config-file: .releasepleaserc.json
manifest-file: .releaseplease.manifest.json
token: ${{ secrets.DSI_HUG_BOT_GITHUB_TOKEN }}
ci_publish:
runs-on: ubuntu-latest
needs: ci_release-please
if: ${{ fromJson(needs.ci_release-please.outputs.release-outputs).releases_created == 'true' }}
strategy:
matrix:
path-released: ${{ fromJson(needs.ci_release-please.outputs.release-outputs).paths_released }}
steps:
- name: Publish
if: ${{ fromJson(needs.ci_release-please.outputs.release-outputs)['${{ matrix.path-released }}--release_created'] }}
uses: ./.github/workflows/ci_job.yml
with:
working-directory: ${{ matrix.path-released }}
npm-token: ${{ secrets.DSI_HUG_NPM_TOKEN }}
publish: true