Skip to content

Commit

Permalink
Dependabot fix (#291)
Browse files Browse the repository at this point in the history
* fix: (#290) removing old package-lock.json

* fix: (#290) removing old headless/package-lock.json

* fix: (#290) updating headless packages

* ci: removing packages/headless build from CI since it is deprecated

* ci: removing packages-headless build from CI since it is deprecated
  • Loading branch information
wjohnsto committed Jun 21, 2021
1 parent 1ffa386 commit f884289
Show file tree
Hide file tree
Showing 5 changed files with 243 additions and 45,712 deletions.
98 changes: 0 additions & 98 deletions .circleci/config.yml
Expand Up @@ -176,59 +176,6 @@ jobs:
json: build/<<parameters.slug>>.$BUILD_VERSION.json
version: $BUILD_VERSION

package-build:
executor:
name: node/default
tag: lts
working_directory: ~/project/packages/headless
steps:
- attach_workspace:
at: ~/project
- node/install-packages
- run:
name: NPM package install and build
command: |
npm run build
- persist_to_workspace:
root: ~/project
paths:
- packages/headless

package-test:
executor:
name: node/default
tag: lts
working_directory: ~/project/packages/headless
steps:
- attach_workspace:
at: ~/project
- node/install-packages
- run:
name: NPM package tests
command: |
npm run test
package-publish:
executor:
name: node/default
tag: lts
working_directory: ~/project/packages/headless
parameters:
args:
type: string
default: --dry-run
steps:
- attach_workspace:
at: ~/project
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_API_KEY" > ~/project/packages/headless/.npmrc
- run:
name: NPM package publish
command: |
npm publish <<parameters.args>>
workflows:
# Workflows defined for each package and plugin.
# tag example for deploying an update for wpe-headless: plugin/wpe-headless/1.0.0
Expand Down Expand Up @@ -314,48 +261,3 @@ workflows:
context: wpe-ldap-creds
auth_url: https://auth.wpengine.io/v1/tokens
upload_url: https://wp-product-info.wpesvc.net/v1/plugins

package-headless:
jobs:
- checkout:
filters:
tags:
only: /.*/
- package-build:
requires:
- checkout
# Enable running this job when a tag is published
filters:
tags:
only: /.*/
- package-test:
requires:
- package-build
# Enable running this job when a tag is published
filters:
tags:
only: /.*/
- package-publish:
name: "NPM Publish (Dry Run)"
requires:
- package-test
filters:
branches:
only:
- main
- canary
tags:
only: /.*/
context: wpe-npm-creds
- package-publish:
name: "NPM Publish"
requires:
- "NPM Publish (Dry Run)"
filters:
branches:
ignore: /.*/
tags:
# tag ex. package/headless/1.0.0
only: /^package\/headless\/\S+/
context: wpe-npm-creds
args: ""

0 comments on commit f884289

Please sign in to comment.