Skip to content

Commit

Permalink
use passed secret, update wp-env step
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Dec 12, 2023
1 parent 9557874 commit 4ec0a8e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ jobs:

- name: Setup Registry for Module
working-directory: ./vendor/${{ inputs.module-repo }}
# if: ${{ false != secrets.registry-token }}
run: printf "\n//npm.pkg.github.com/:_authToken=${{ secrets.NEWFOLD_ACCESS_TOKEN }}" >> .npmrc
if: ${{ secrets.registry-token }}
run: printf "\n//npm.pkg.github.com/:_authToken=${{ secrets.registry-token }}" >> .npmrc

- name: NPM Install for Module
working-directory: ./vendor/${{ inputs.module-repo }}
run: npm ci --legacy-peer-deps

- name: Setup Registry for Plugin
# if: ${{ false != secrets.registry-token }}
run: printf "\n//npm.pkg.github.com/:_authToken=${{ secrets.NEWFOLD_ACCESS_TOKEN }}" >> .npmrc
if: ${{ secrets.registry-token }}
run: printf "\n//npm.pkg.github.com/:_authToken=${{ secrets.registry-token }}" >> .npmrc

- name: NPM Install for Plugin
run: npm ci --legacy-peer-deps
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
run: echo '{"plugins":["${{ steps.workflow.outputs.DIST }}/${{ steps.workflow.outputs.PACKAGE }}"]}' > .wp-env.override.json

- name: Install WordPress
run: npx wp-env start --debug
run: npx @wordpress/env@latest start

- name: Run Cypress Tests
run: npm run test:e2e -- --browser chrome
Expand Down

0 comments on commit 4ec0a8e

Please sign in to comment.