Skip to content

Use Node 20 in release deploy job to satisfy @wp-playground/common en… #23

Use Node 20 in release deploy job to satisfy @wp-playground/common en…

Use Node 20 in release deploy job to satisfy @wp-playground/common en… #23

Workflow file for this run

name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
php-tests:
uses: ./.github/workflows/php-tests.yml
jest-tests:
uses: ./.github/workflows/jest-tests.yml
e2e:
uses: ./.github/workflows/e2e.yml
tag:
name: Build plugin and deploy to WordPress.org
runs-on: ubuntu-latest
needs: [php-tests, jest-tests, e2e]
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@v2
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Javascript dependencies
run: |
npm install
- name: Package
run: |
./scripts/package.sh
- name: Remove zip file
run: |
rm common-knowledge-join-flow.zip
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: common-knowledge-join-flow
BUILD_DIR: dist/common-knowledge-join-flow
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true