-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (41 loc) · 1.23 KB
/
Copy pathrelease-please.yml
File metadata and controls
52 lines (41 loc) · 1.23 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
45
46
47
48
49
50
51
52
name: Release Please
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
issues: write
id-token: write # required for npm oidc
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: googleapis/release-please-action@v5
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
build-and-test:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
uses: ./.github/workflows/build-and-test.yml
publish:
needs: [release-please, build-and-test]
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v6
with:
node-version: 24
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: pnpm install --frozen-lockfile
# build will be executed in prepublishOnly script
- name: Publish to npm
run: npm publish --access public --provenance