-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.06 KB
/
cd.yml
File metadata and controls
44 lines (35 loc) · 1.06 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
name: cd
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
publish:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- id: release
uses: googleapis/release-please-action@v4.4.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/release-please/config.json
manifest-file: .github/release-please/manifest.json
- uses: actions/setup-node@v6.3.0
if: ${{ steps.release.outputs.release_created }}
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@latest
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm run type
if: ${{ steps.release.outputs.release_created }}
- run: npm publish --tag latest --provenance --access public
if: ${{ steps.release.outputs.release_created }}