Skip to content

Commit bf17f2d

Browse files
committed
feat: update sentry with sampleRate and update github action
1 parent 7bcfa4a commit bf17f2d

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
name: Build
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
4+
- push
105

116
jobs:
12-
build:
7+
cache-and-install:
138
runs-on: ubuntu-latest
149

15-
strategy:
16-
matrix:
17-
node-version: [22.x]
18-
1910
steps:
20-
- uses: actions/checkout@v4
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v4
23-
with:
24-
node-version: ${{ matrix.node-version }}
25-
cache: 'pnpm'
26-
- run: pnpm build
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- uses: pnpm/action-setup@v4
15+
name: Install pnpm
16+
with:
17+
version: 10
18+
run_install: false
19+
20+
- name: Install Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
cache: 'pnpm'
25+
26+
- name: Install dependencies
27+
run: pnpm install
28+
29+
- name: Build cli
30+
run: pnpm build

src/lib/sentry.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export const sentry = Sentry.init({
66
dsn: 'https://[email protected]/4',
77
release: packageJson.version,
88

9+
tracesSampleRate: 1.0,
10+
911
// Make sure no events will be sent to sentry
1012
// if telemetry is disabled
1113
beforeSend: (event) => {

0 commit comments

Comments
 (0)