Skip to content

Commit

Permalink
Update Deploy Actions CI (#115)
Browse files Browse the repository at this point in the history
Change deploy action name.

Update step name labels, and remove --only= to resolve "npm WARN config only Use `--omit=dev` to omit dev dependencies from the install."

Update actions.upload/artifact to v4.
  • Loading branch information
thefrosty authored Apr 25, 2024
1 parent b775fe5 commit 530258b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Deploy to WordPress.org"
name: "Deploy to .org & upload artifact(s)"

on:
release:
Expand All @@ -23,20 +23,20 @@ jobs:

- name: Run composer install
run: |
composer install --no-interaction --optimize-autoloader
composer install --no-interaction
- name: Run composer update with --no-dev
run: |
composer update --no-dev --no-interaction --optimize-autoloader
- name: Set Node version to 16
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Run npm install
run: |
npm install --only=production --omit=dev
npm install --omit=dev
# - name: WordPress Plugin Deploy
# if: |
Expand All @@ -54,7 +54,7 @@ jobs:
composer archive -vvv --format=zip --file="plugin-build/custom-login"
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: custom-login
path: plugin-build/custom-login.zip
Expand Down

0 comments on commit 530258b

Please sign in to comment.