-
Notifications
You must be signed in to change notification settings - Fork 52
49 lines (49 loc) · 1.42 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
48
49
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@v4
- uses: actions/setup-node@v4
with:
node-version: latest
cache: "pnpm"
check-latest: true
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: |
corepack enable
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: |
git status
pnpm -r publish --filter "@unpic/*"
env:
NPM_CONFIG_PROVENANCE: true
if: ${{ steps.release.outputs.releases_created }}