Skip to content

fix(deps-dev): bump @wordpress/scripts from 32.6.0 to 33.0.0 #246

fix(deps-dev): bump @wordpress/scripts from 32.6.0 to 33.0.0

fix(deps-dev): bump @wordpress/scripts from 32.6.0 to 33.0.0 #246

name: Build Preview Zip
on:
pull_request:
types: [ 'opened', 'synchronize', 'reopened', 'edited' ]
# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
# The concurrency group contains the workflow name and the branch name for pull requests
# or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
job_status: ${{ job.status }}
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false
- name: Set up PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
with:
php-version: '7.4'
coverage: none
- name: Use desired version of Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: '.nvmrc'
check-latest: true
- name: Install NPM dependencies
run: npm ci
- name: Install Composer dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0
with:
composer-options: '--no-dev -o'
- name: Build plugin
run: |
npm run build
npm run makepot
npm run archive
- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: classifai-zip-pr${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}
path: classifai.zip
if-no-files-found: error