From e6b5e9dfedad5f974b1828a3a41e3f88ef6f0534 Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Wed, 21 Jun 2023 10:35:13 -0600 Subject: [PATCH] Update our deploy action to run node 16 and update one action --- .github/workflows/dotorg-push-deploy.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotorg-push-deploy.yml b/.github/workflows/dotorg-push-deploy.yml index fe9bace..75a96b5 100644 --- a/.github/workflows/dotorg-push-deploy.yml +++ b/.github/workflows/dotorg-push-deploy.yml @@ -1,18 +1,27 @@ name: Deploy to WordPress.org + on: release: types: [published] + jobs: tag: name: New release runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 + + - name: Setup node version + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Build run: | npm install npm run build + - name: WordPress Plugin Deploy id: deploy uses: 10up/action-wordpress-plugin-deploy@stable @@ -21,6 +30,7 @@ jobs: env: SVN_USERNAME: ${{ secrets.SVN_USERNAME }} SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + - name: Upload release asset uses: actions/upload-release-asset@v1 env: