generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.17 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
name: release-please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
# needed for the auto-tag
issues: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_PAT }}
release-type: node
- uses: actions/checkout@v4
- name: Auto Tag
uses: graasp/graasp-deploy/.github/actions/auto-tag-after-release@v1
with:
releases_created: ${{ steps.release.outputs.releases_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
# -------------------------------------------------------------------------
# This section is useful only if you plan on publishing your package to NPM
# Remove it if you do not plan to publish to NPM
- name: Publish to NPM
uses: graasp/graasp-deploy/.github/actions/publish-to-npm@v1
with:
npm-token: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.releases_created == 'true' }}
# -------------------------------------------------------------------------