-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1.11 KB
/
release.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
name: Release
on:
push:
branches: ["main"]
jobs:
integrate:
name: Integrate
uses: ./.github/workflows/integrate.yaml
release:
name: Release
needs: ["integrate"]
runs-on: ubuntu-latest
steps:
- id: release
name: Run release-please
uses: google-github-actions/release-please-action@v3.7.11
with:
release-type: node
package-name: "@hedger/nestjs-encryption"
pull-request-header: "Upcoming release"
pull-request-title-pattern: "chore: release${component} ${version}"
outputs:
tag_name: ${{ steps.release.outputs.tag_name }}
release_created: ${{ steps.release.outputs.release_created }}
version:
"${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor
}}.${{ steps.release.outputs.patch }}"
publish:
name: Publish
if: ${{ needs.release.outputs.release_created == 'true' }}
needs: ["release"]
uses: ./.github/workflows/publish.yaml
secrets: inherit
with:
tag_name: ${{ needs.release.outputs.tag_name }}
version: ${{ needs.release.outputs.version }}