Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependabot fix #291

Merged
merged 5 commits into from
Jun 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 0 additions & 98 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
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: ""
Loading