Update readme #609
Workflow file for this run
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
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 |