-
Notifications
You must be signed in to change notification settings - Fork 73
44 lines (41 loc) · 1.27 KB
/
release-please.yaml
File metadata and controls
44 lines (41 loc) · 1.27 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
40
41
42
43
44
on:
push:
branches:
- main
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
name: Run Release Please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{secrets.GITHUB_TOKEN}}
# The logic below handles the npm publication:
- name: Checkout Repository
uses: actions/checkout@v4
if: ${{ steps.release.outputs.releases_created }}
- name: Install pnpm
uses: pnpm/action-setup@v4
if: ${{ steps.release.outputs.releases_created }}
- name: Setup Node
uses: actions/setup-node@v4
if: ${{ steps.release.outputs.releases_created }}
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Build Packages
if: ${{ steps.release.outputs.releases_created }}
run: |
pnpm install
pnpm build
# Release Please has already incremented versions and published tags, so we just
# need to publish all unpublished versions to NPM here
- name: Publish to NPM
if: ${{ steps.release.outputs.releases_created }}
run: pnpm -r publish --access public --no-git-checks