GitHub action: Publish plugin to Automattic/create-content-model-releases latest on trunk merge #1
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: 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: Upload zip artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Create Content Model Zip | |
path: create-content-model.zip |