-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (31 loc) · 1.1 KB
/
publish-release.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
on:
push:
branches:
- main # New GitHub-favored name for default branch
name: Publish release
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Check-out source code
uses: actions/checkout@v2
- name: Generate and process release PR
id: release_please
uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: ${{ github.event.repository.name }}
- name: Publish v{major}.{minor} tag
if: steps.release_please.outputs.release_created
uses: richardsimko/update-tag@v1
with:
tag_name: v${{steps.release_please.outputs.major}}.${{steps.release_please.outputs.minor}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish v{major} tag
if: steps.release_please.outputs.release_created
uses: richardsimko/update-tag@v1
with:
tag_name: v${{steps.release_please.outputs.major}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}