fix record series #423
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Laserfiche. | |
# Licensed under the MIT License. See LICENSE in the project root for license information. | |
name: SPFx CI CD | |
on: | |
push: | |
branches: ['\d+.x'] | |
pull_request: | |
branches: ['\d+.x'] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
packagePath: sharepoint/solution/LaserficheSharePointOnlineIntegration.sppkg | |
packagePathUserDocs: UserDocuments | |
fullVersion: 1.0.0.${{github.run_number}} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Tag commit | |
uses: rickstaa/action-create-tag@v1 | |
with: | |
tag: ${{env.fullVersion}} | |
commit_sha: ${{ github.sha }} | |
message: Workflow run ${{github.server_url}}/${{github.repository}}/actions/runs/${{ github.run_id}} | |
- name: replace config/package-solution.json version | |
run: sed -i 's/"1.0.0.0"/"${{env.fullVersion}}"/g' config/package-solution.json | |
- name: replace package.json version | |
run: sed -i 's/"1.0.0.0"/"${{env.fullVersion}}"/g' package.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Build solution | |
run: gulp build | |
- name: Bundle and package | |
run: | | |
gulp bundle --ship | |
gulp package-solution --ship | |
- name: Upload Build Package | |
uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
${{ env.packagePath }} | |
${{ env.packagePathUserDocs }} |