-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.55 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
on:
push:
branches:
- main
name: release-please
env:
ACTION_NAME: login
jobs:
release-please-release:
runs-on: ubuntu-latest
permissions:
contents: write # Needed to tag repo and create releases
pull-requests: write # Needed to add comments to pull requests on release
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
package-name: ${{env.ACTION_NAME}}
release-type: node
token: ${{ secrets.GITHUB_TOKEN }}
command: github-release
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- name: Tag minor version
if: ${{ steps.release.outputs.release_created }}
uses: richardsimko/update-tag@v1
with:
tag_name: v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Tag major version
if: ${{ steps.release.outputs.release_created }}
uses: richardsimko/update-tag@v1
with:
tag_name: v${{ steps.release.outputs.major }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-please-pr:
runs-on: ubuntu-latest
needs:
- release-please-release
steps:
- id: release-pr
uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.CHANGESETS_GITHUB_TOKEN }}
release-type: node
package-name: ${{env.ACTION_NAME}}
command: release-pr