Skip to content

Commit 48e3c3b

Browse files
committed
Fix release workflow
1 parent 73c1637 commit 48e3c3b

3 files changed

Lines changed: 5 additions & 24 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,8 @@ jobs:
3939
- name: Install dependencies
4040
run: npm ci
4141

42-
- name: Build WASM
43-
run: npm run build:wasm
44-
45-
- name: Build library
46-
run: npm run build:lib
47-
4842
- name: Create NPM package
49-
run: npm pack --workspace=src/web
50-
51-
- name: Verify package contents
52-
run: |
53-
echo "Listing contents of NPM package:"
54-
tar -tzf slickquant-slick-ladder-*.tgz | head -50
55-
echo ""
56-
echo "WASM files in package:"
57-
tar -tzf slickquant-slick-ladder-*.tgz | grep wasm || echo "No wasm files found in package"
43+
run: npm run package
5844

5945
- name: Upload NPM package artifact
6046
uses: actions/upload-artifact@v4
@@ -202,11 +188,5 @@ jobs:
202188
- name: Install dependencies
203189
run: npm ci
204190

205-
- name: Build WASM
206-
run: npm run build:wasm
207-
208-
- name: Build library
209-
run: npm run build:lib
210-
211191
- name: Publish to NPM
212-
run: npm publish --access public --workspace=src/web
192+
run: npm run publish

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
33
"version": "8.0.100",
4-
"rollForward": "latestFeature",
4+
"rollForward": "latestMajor",
55
"allowPrerelease": false
66
}
77
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"build:all": "npm run build:wasm && npm run build:lib && npm run build:demo",
1616
"dev:demo": "npm run dev --workspace=examples/web",
1717
"serve:demo": "npm run serve --workspace=examples/web",
18-
"release": "npm pack --workspace=src/web && npm publish --access public --workspace=src/web",
18+
"package": "npm run build:lib:full && npm pack --workspace=src/web",
19+
"publish": "npm run build:lib:full && npm publish --access public --workspace=src/web",
1920
"test:npm": "cd tests/npm && npm test",
2021
"test:npm:browser": "cd tests/npm && npm run serve"
2122
},

0 commit comments

Comments
 (0)