diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 0000000..a080ea3 --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,42 @@ +agents: + queue: general-039 + +steps: + - label: ":nodejs: Test" + plugins: + - twilio-internal/admiral-secret: + realm: corp-us1 + secrets: + - key-full: NPM_ARTIFACTORY_SECRET + secret-name: jobs_jenkins_npm_credentials + - twilio-internal/npm-artifactory#v1.1.0: + secret-name: "NPM_ARTIFACTORY_SECRET" + scope: "@segment" + - docker#v5.13.0: + image: "018537234677.dkr.ecr.us-east-1.amazonaws.com/docker.io/library/node:24.4.1-bookworm" + propagate-environment: true + mount-buildkite-agent: true + commands: | + printf 'registry=https://npmjs.artifacts.twilio.com/artifactory/api/npm/virtual-npm-twilio/\nalways-auth=true\n' >> .npmrc + npm install + make bundle.js + + - label: ":rocket: Publish" + if: build.tag =~ /^v[0-9]+(\.[0-9]+)*(-.+)?$/ + plugins: + - twilio-internal/admiral-secret: + realm: corp-us1 + secrets: + - key-full: NPM_ARTIFACTORY_SECRET + secret-name: jobs_jenkins_npm_credentials + - twilio-internal/npm-artifactory#v1.1.0: + secret-name: "NPM_ARTIFACTORY_SECRET" + scope: "@segment" + - docker#v5.13.0: + image: "018537234677.dkr.ecr.us-east-1.amazonaws.com/docker.io/library/node:24.4.1-bookworm" + propagate-environment: true + mount-buildkite-agent: true + commands: | + printf 'registry=https://npmjs.artifacts.twilio.com/artifactory/api/npm/virtual-npm-twilio/\nalways-auth=true\n' >> .npmrc + npm install + npm publish . diff --git a/package.json b/package.json index 48e8135..ad34bde 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,7 @@ "description": "Submit a form programmatically, triggering its submit handlers, since the native `submit` method doesn't...", "main": "index.js", "devDependencies": { - "mochify": "^2.17.0", - "phantomjs-prebuilt": "^2.1.7", - "compat-trigger-event": "^1.0.0", - "browserify": "^13.0.0" + "browserify": "^17.0.1" }, "repository": { "type": "git",