Skip to content

Commit da498c2

Browse files
committed
chore: prebuild dist folder | add changelog
1 parent 79a881b commit da498c2

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

.github/workflows/test_node.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,27 @@ jobs:
3737

3838
- run: npm run check:types
3939

40+
prepare_build:
41+
name: Prepare Build
42+
runs-on: ubuntu-24.04
43+
steps:
44+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
45+
46+
- name: Use Node.js
47+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # 6.0.0
48+
with:
49+
node-version-file: package.json
50+
51+
- name: Install dependencies
52+
run: npm ci
53+
54+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
55+
with:
56+
name: artifact-build
57+
path: js-dist
58+
4059
test_node:
60+
needs: prepare_build
4161
strategy:
4262
fail-fast: false
4363
matrix:
@@ -56,7 +76,16 @@ jobs:
5676

5777
- name: Install dependencies via npm ci
5878
if: ${{ !inputs.triggered-by-release }}
59-
run: npm ci
79+
run: npm ci --ignore-scripts
80+
81+
- name: Download build artifact
82+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # 5.0.0
83+
with:
84+
name: artifact-build
85+
path: js-dist
86+
87+
- name: Install CLI
88+
run: npm run install-cli
6089

6190
# For pushes to the release branch, we need to install the dependencies via `npm install`
6291
# because the `package-lock.json` is not updated with the new versions of the optional

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Various fixes & improvements
6+
7+
- Migrated JavaScript wrapper to TypeScript for better type safety ([#2910](https://github.com/getsentry/sentry-cli/pull/2910))
8+
39
## 2.57.0
410

511
### New Features

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
"@sentry/cli-win32-x64": "2.57.0"
4343
},
4444
"scripts": {
45-
"postinstall": "npm run build && node ./scripts/install.js",
45+
"postinstall": "npm run build && npm run install-cli",
4646
"build": "tsc",
47+
"install-cli": "node ./scripts/install.js",
4748
"prepack": "npm run build",
4849
"fix": "npm-run-all fix:eslint fix:prettier",
4950
"fix:eslint": "eslint --fix bin/* scripts/**/*.js js/**/*.js",

0 commit comments

Comments
 (0)