-
Notifications
You must be signed in to change notification settings - Fork 112
47 lines (38 loc) · 1.18 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
41
42
43
44
45
46
47
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
name: Release Please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- id: release
name: Release Please
uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: '@vis.gl/react-google-maps'
bump-minor-pre-major: true
# Below are the actions for actual npm publishing when a release-branch was merged.
- if: ${{ steps.release.outputs.release_created }}
name: Checkout
uses: actions/checkout@v3
- if: ${{ steps.release.outputs.release_created }}
name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
registry-url: 'https://registry.npmjs.org'
- if: ${{ steps.release.outputs.release_created }}
name: Install Dependencies
run: npm ci
- if: ${{ steps.release.outputs.release_created }}
name: Publish
# npm publish will trigger the build via the prepack hook
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}