Skip to content

Merge pull request #229 from KevinBatdorf/release/1.22.1 #598

Merge pull request #229 from KevinBatdorf/release/1.22.1

Merge pull request #229 from KevinBatdorf/release/1.22.1 #598

name: Build production zip file
on: push
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@v3
- 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@v3
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