Skip to content

Commit 99ed7b1

Browse files
committed
chore: update lockfile and actions
1 parent 6308242 commit 99ed7b1

File tree

3 files changed

+2889
-70
lines changed

3 files changed

+2889
-70
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [18.x, 20.x]
15+
node-version: [22.x]
1616

1717
steps:
1818
- uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Release
22

33
on:
4-
push:
4+
workflow_run:
5+
workflows: ["CI"]
6+
types:
7+
- completed
58
branches:
69
- main
710
workflow_dispatch:
@@ -14,44 +17,11 @@ on:
1417
concurrency: ${{ github.workflow }}-${{ github.ref }}
1518

1619
jobs:
17-
build-test:
18-
name: Build and Test
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: Checkout Repo
22-
uses: actions/checkout@v4
23-
24-
- name: Setup pnpm
25-
uses: pnpm/action-setup@v3
26-
with:
27-
version: 8
28-
29-
- name: Setup Node.js
30-
uses: actions/setup-node@v4
31-
with:
32-
node-version: 20
33-
cache: 'pnpm'
34-
registry-url: 'https://registry.npmjs.org'
35-
36-
- name: Install Dependencies
37-
run: pnpm install
38-
39-
- name: Lint
40-
run: pnpm lint
41-
42-
- name: Type Check
43-
run: pnpm typecheck
44-
45-
- name: Test
46-
run: pnpm test
47-
48-
- name: Build
49-
run: pnpm build
50-
5120
release:
5221
name: Release
53-
needs: build-test
5422
runs-on: ubuntu-latest
23+
# Only run if CI workflow succeeded
24+
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
5525
steps:
5626
- name: Checkout Repo
5727
uses: actions/checkout@v4
@@ -67,7 +37,7 @@ jobs:
6737
- name: Setup Node.js
6838
uses: actions/setup-node@v4
6939
with:
70-
node-version: 20
40+
node-version: 22
7141
cache: 'pnpm'
7242
registry-url: 'https://registry.npmjs.org'
7343

@@ -85,7 +55,6 @@ jobs:
8555
publish: pnpm changeset publish
8656
commit: 'chore(release): version packages'
8757
title: 'chore(release): version packages'
88-
${{ inputs.force_publish && 'createGithubReleases: false' || '' }}
8958
env:
9059
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9160
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)