Skip to content

Commit 95b66c2

Browse files
authored
DaraGrid: Export to excel, fix excel-js-fork, update publish workflow (#11)
1 parent 70c6b06 commit 95b66c2

File tree

2 files changed

+32
-71
lines changed

2 files changed

+32
-71
lines changed

.github/actions/build/action.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,37 @@ jobs:
1717
with:
1818
ref: ${{ inputs.version }}
1919

20-
- name: Build
21-
uses: ./.github/actions/build
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '18'
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Clean previous build
30+
run: npm run clean
31+
32+
- name: Build package
33+
run: npm run build
34+
35+
- name: Verify build artifacts
36+
run: |
37+
echo "Verifying build artifacts..."
38+
if [ ! -d "dist" ]; then
39+
echo "Error: dist directory not found"
40+
exit 1
41+
fi
42+
if [ ! -f "dist/dx-exceljs-fork.min.js" ]; then
43+
echo "Error: minified bundle not found"
44+
exit 1
45+
fi
46+
if [ ! -f "dist/dx-exceljs-fork.js" ]; then
47+
echo "Error: main bundle not found"
48+
exit 1
49+
fi
50+
echo "All build artifacts verified successfully"
2251
2352
- uses: actions/setup-node@v4
2453
with:
@@ -28,10 +57,4 @@ jobs:
2857
- name: Publish to NPM
2958
env:
3059
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
run: npm publish --access=public
32-
33-
- name: Setup NPM tags
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36-
run: |
37-
npm dist-tag add devextreme-exceljs-fork@${{ inputs.version }} 25_1
60+
run: npm publish

0 commit comments

Comments
 (0)