-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.48 KB
/
Copy pathrelease-please.yml
File metadata and controls
39 lines (34 loc) · 1.48 KB
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
name: release-please
# Watches main for conventional commits. When commits since the last release
# add up to a version bump (feat → minor, fix → patch, BREAKING CHANGE → major),
# opens or updates a "release PR" that bumps package.json + .release-please-manifest.json
# and prepends new CHANGELOG.md entries. Merging that PR creates the v<X.Y.Z> tag,
# which triggers release.yml to publish to npm + GitHub Releases.
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
concurrency:
group: release-please-${{ github.ref }}
cancel-in-progress: false
jobs:
release-please:
name: release-please
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v5
with:
# Default GITHUB_TOKEN works because we don't modify workflow files via
# the bot. If we ever need to (e.g. release-please updating itself),
# swap to a PAT with `workflow` scope.
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
# release-please owns: version bumps, CHANGELOG entries, the v<X.Y.Z>
# tag created on PR merge. release.yml owns: building + smoke-testing
# the tarball, creating the GitHub Release WITH that tarball as an
# asset, and OIDC-publishing to npm. Skipping the bot's own GitHub
# Release here prevents the two from colliding.
skip-github-release: true