-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.35 KB
/
Copy pathrelease.yml
File metadata and controls
58 lines (47 loc) · 1.35 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
52
53
54
55
56
57
58
name: Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Release Please
id: release
uses: googleapis/release-please-action@v4
with:
release-type: node
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- name: Setup pnpm
if: ${{ steps.release.outputs.release_created }}
uses: pnpm/action-setup@v4
with:
version: 10.30.3
- name: Setup Node.js
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
registry-url: https://registry.npmjs.org/
- name: Update npm
if: ${{ steps.release.outputs.release_created }}
run: npm install --global npm@latest
- name: Install dependencies
if: ${{ steps.release.outputs.release_created }}
run: pnpm install --frozen-lockfile
- name: Verify
if: ${{ steps.release.outputs.release_created }}
run: pnpm run verify
- name: Publish to npm
if: ${{ steps.release.outputs.release_created }}
run: npm publish --provenance --access public
env:
HUSKY: 0