Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: 'Build devextreme-exceljs-fork'
author: 'Developer Express Inc.'

inputs:
node-version:
description: 'Node.js version to use for building'
required: false
default: '18'
clean-build:
description: 'Whether to clean before building'
required: false
default: 'true'

outputs:
build-status:
description: 'Status of the build process'
value: ${{ steps.build.outputs.status }}

runs:
using: 'composite'
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'npm'

- name: Install dependencies
shell: bash
run: npm ci

- name: Clean previous build
if: ${{ inputs.clean-build == 'true' }}
shell: bash
run: npm run clean

- name: Build package
id: build
shell: bash
run: |
echo "Starting build process..."
npm run build
echo "status=success" >> $GITHUB_OUTPUT
echo "Build completed successfully"

- name: Verify build artifacts
shell: bash
run: |
echo "Verifying build artifacts..."
if [ ! -d "dist" ]; then
echo "Error: dist directory not found"
exit 1
fi
if [ ! -f "dist/dx-exceljs-fork.min.js" ]; then
echo "Error: minified bundle not found"
exit 1
fi
if [ ! -f "dist/dx-exceljs-fork.js" ]; then
echo "Error: main bundle not found"
exit 1
fi
echo "All build artifacts verified successfully"
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout ExcelJS repository
- name: Checkout devextreme-exceljs-fork repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.version }}

- name: Build
uses: ./.github/actions/exceljs/steps/build
uses: ./.github/actions/build

- uses: actions/setup-node@v4
with:
Expand All @@ -34,4 +34,4 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm dist-tag add exceljs@${{ inputs.version }} 25_1
npm dist-tag add devextreme-exceljs-fork@${{ inputs.version }} 25_1