Skip to content

Merge pull request #340 from KevinBatdorf/release/1.26.6 #769

Merge pull request #340 from KevinBatdorf/release/1.26.6

Merge pull request #340 from KevinBatdorf/release/1.26.6 #769

name: Build production zip file
on:
push:
workflow_dispatch:
jobs:
build:
name: Build zip file
concurrency:
group: production - ${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: npm install and build
run: |
npm ci
npx eslint --max-warnings 0 .
npm run build
env:
CI: true
- name: Package
uses: actions/upload-artifact@v4
with:
name: code-block-pro
retention-days: 5
path: |
${{ github.workspace }}/
!${{ github.workspace }}/node_modules/
!${{ github.workspace }}/cypress/
!${{ github.workspace }}/target/
!${{ github.workspace }}/scripts/
!${{ github.workspace }}/.git/
!${{ github.workspace }}/.github/
!${{ github.workspace }}/.wordpress-org/
!${{ github.workspace }}/assets/
!${{ github.workspace }}/scripts/
!${{ github.workspace }}/package-lock.json