-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.21 KB
/
release-please.yaml
File metadata and controls
50 lines (40 loc) · 1.21 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
name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: .release-please-config.json
manifest-file: .release-please-manifest.json
# Publish to npm when release is created
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Update npm
if: ${{ steps.release.outputs.release_created }}
run: npm install -g npm@latest
- name: Install dependencies
if: ${{ steps.release.outputs.release_created }}
run: npm ci
- name: Build
if: ${{ steps.release.outputs.release_created }}
run: npm run build
- name: Publish to NPM
if: ${{ steps.release.outputs.release_created }}
env:
NPM_CONFIG_PROVENANCE: true
run: npm publish --access public