Skip to content

Commit 400acdf

Browse files
committed
chore: fix release workflow and dependency alerts
1 parent fc1f63b commit 400acdf

4 files changed

Lines changed: 310 additions & 1277 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,34 @@ on:
44
push:
55
branches:
66
- main
7-
tags:
8-
- "v*"
7+
workflow_dispatch:
98

109
permissions:
1110
contents: write
1211
pull-requests: write
1312
id-token: write
1413

14+
concurrency:
15+
group: release-please-${{ github.ref }}
16+
cancel-in-progress: false
17+
1518
jobs:
1619
release-please:
20+
if: github.ref == 'refs/heads/main'
21+
runs-on: ubuntu-latest
22+
outputs:
23+
release_created: ${{ steps.release.outputs.release_created }}
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: googleapis/release-please-action@v4
28+
id: release
29+
with:
30+
release-type: node
31+
32+
publish:
33+
needs: release-please
34+
if: needs.release-please.outputs.release_created == 'true'
1735
runs-on: ubuntu-latest
1836
steps:
1937
- uses: actions/checkout@v4
@@ -24,19 +42,14 @@ jobs:
2442

2543
- uses: actions/setup-node@v4
2644
with:
27-
node-version: 24
45+
node-version: 22
2846
registry-url: "https://registry.npmjs.org"
47+
cache: pnpm
2948

3049
- name: Install dependencies
31-
run: pnpm install --no-frozen-lockfile
32-
33-
- uses: googleapis/release-please-action@v4
34-
id: release
35-
with:
36-
release-type: node
50+
run: pnpm install --frozen-lockfile
3751

3852
- name: Publish to NPM
39-
if: ${{ steps.release.outputs.release_created || startsWith(github.ref, 'refs/tags/v') }}
40-
run: pnpm publish --no-git-checks --access public
53+
run: pnpm publish --no-git-checks --access public --provenance
4154
env:
4255
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)