-
Notifications
You must be signed in to change notification settings - Fork 51
46 lines (46 loc) · 1.36 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
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- uses: navikt/github-app-token-generator@v1
id: get-token
with:
private-key: ${{ secrets.APP_PRIVATE_KEY }}
app-id: ${{ secrets.APP_ID }}
- uses: google-github-actions/release-please-action@v4
id: release
with:
command: manifest
token: ${{ steps.get-token.outputs.token }}
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v4
with:
cache: "pnpm"
check-latest: true
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: pnpm install
- run: pnpm build:packages
if: ${{ steps.release.outputs.releases_created }}
- name: Authenticate pnpm
run:
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
if: ${{ steps.release.outputs.releases_created }}
env:
NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: pnpm -r publish --filter "@unpic/*"
env:
NPM_CONFIG_PROVENANCE: true
if: ${{ steps.release.outputs.releases_created }}