Skip to content

GitHub action: Publish plugin to Automattic/create-content-model-releases latest on trunk merge #2

GitHub action: Publish plugin to Automattic/create-content-model-releases latest on trunk merge

GitHub action: Publish plugin to Automattic/create-content-model-releases latest on trunk merge #2

name: Create Zip Artifact
on:
pull_request:
types:
- opened
- synchronize
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm ci
- name: Build and create plugin zip
run: npm run plugin-zip
- name: Unzip plugin to prevent double-zipping in the next step
run: unzip create-content-model.zip -d create-content-model
- name: Zip the contents to create plugin artifact
uses: actions/upload-artifact@v3
with:
name: create-content-model
path: create-content-model.zip