-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.78 KB
/
Copy pathrelease-please.yml
File metadata and controls
51 lines (43 loc) · 1.78 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
name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
id-token: write # Required for npm Trusted Publishing / OIDC.
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Create or update GitHub releases
id: release
uses: googleapis/release-please-action@v5
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- name: Checkout release commit
if: ${{ steps.release.outputs['packages/envy--release_created'] == 'true' }}
uses: actions/checkout@v5
- name: Setup Vite+ and Node.js
if: ${{ steps.release.outputs['packages/envy--release_created'] == 'true' }}
uses: voidzero-dev/setup-vp@v1
with:
node-version: "24"
cache: true
# Trusted Publishing requires npm 11.5.1+ and a supported Node.js runtime.
# Keep npm current so publish authentication does not fail due to an old bundled npm.
- name: Update npm CLI
if: ${{ steps.release.outputs['packages/envy--release_created'] == 'true' }}
run: npm install -g npm@latest
# Do not set NODE_AUTH_TOKEN here. npm authenticates through the Trusted Publisher
# connection configured on npmjs.com for @developwise/envy.
- name: Install dependencies
if: ${{ steps.release.outputs['packages/envy--release_created'] == 'true' }}
run: vp install --frozen-lockfile
# Trusted Publishing generates npm provenance automatically; --provenance is unnecessary.
- name: Publish @developwise/envy to npm
if: ${{ steps.release.outputs['packages/envy--release_created'] == 'true' }}
working-directory: packages/envy
run: npm publish --access public