Skip to content

Commit 7939926

Browse files
committed
fix lerna which doesn't work with npm automation tokens
1 parent 4bcce25 commit 7939926

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.buildkite/pipeline.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
env:
2-
SEGMENT_CONTEXTS: 'snyk,npm,aws-credentials,ecr,saucelabs,npm-publish'
3-
SEGMENT_BUILDKITE_IMAGE: 'analytics-next-ci-agent'
2+
SEGMENT_CONTEXTS: "snyk,npm,aws-credentials,ecr,saucelabs,npm-publish"
3+
SEGMENT_BUILDKITE_IMAGE: "analytics-next-ci-agent"
44

55
steps:
6-
- label: ':hammer: Build and Test'
7-
key: 'build'
6+
- label: ":hammer: Build and Test"
7+
key: "build"
88
agents:
99
queue: v1
1010
command:
@@ -14,8 +14,8 @@ steps:
1414
plugins:
1515
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
1616
key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
17-
paths: ['node_modules/']
18-
s3_bucket_name: 'segment-buildkite-cache'
17+
paths: ["node_modules/"]
18+
s3_bucket_name: "segment-buildkite-cache"
1919
save: true
2020
- docker#v3.3.0:
2121
image: circleci/node:12.18-browsers
@@ -24,8 +24,8 @@ steps:
2424
- NPM_TOKEN
2525
- CHROME-BIN=google-chrome
2626

27-
- label: 'SauceLabs'
28-
key: 'sauce_labs'
27+
- label: "SauceLabs"
28+
key: "sauce_labs"
2929
soft_fail: true
3030
command:
3131
- npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN}
@@ -34,8 +34,8 @@ steps:
3434
plugins:
3535
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
3636
key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
37-
paths: ['node_modules/']
38-
s3_bucket_name: 'segment-buildkite-cache'
37+
paths: ["node_modules/"]
38+
s3_bucket_name: "segment-buildkite-cache"
3939
- docker#v3.3.0:
4040
image: 528451384384.dkr.ecr.us-west-2.amazonaws.com/analytics.js-integrations-ci
4141
user: root
@@ -44,8 +44,8 @@ steps:
4444
- SAUCE_USERNAME
4545
- SAUCE_ACCESS_KEY
4646

47-
- label: '🔒 Snyk Security Check'
48-
key: 'snyk'
47+
- label: "🔒 Snyk Security Check"
48+
key: "snyk"
4949
agents:
5050
queue: v1
5151
plugins:
@@ -54,9 +54,9 @@ steps:
5454
fail-on: upgradable
5555

5656
- wait: ~
57-
depends_on: ['snyk', 'build']
57+
depends_on: ["snyk", "build"]
5858

59-
- label: ':cloud: Upload Assets to stage bucket'
59+
- label: ":cloud: Upload Assets to stage bucket"
6060
branches: master staging
6161
agents:
6262
queue: v1
@@ -66,10 +66,10 @@ steps:
6666
plugins:
6767
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
6868
key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
69-
paths: ['node_modules/']
70-
s3_bucket_name: 'segment-buildkite-cache'
69+
paths: ["node_modules/"]
70+
s3_bucket_name: "segment-buildkite-cache"
7171

72-
- label: ':cloud: Upload Assets to production bucket'
72+
- label: ":cloud: Upload Assets to production bucket"
7373
branches: master
7474
agents:
7575
queue: v1
@@ -79,16 +79,16 @@ steps:
7979
plugins:
8080
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
8181
key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
82-
paths: ['node_modules/']
83-
s3_bucket_name: 'segment-buildkite-cache'
82+
paths: ["node_modules/"]
83+
s3_bucket_name: "segment-buildkite-cache"
8484

85-
- label: ':cloud: Publish'
85+
- label: ":cloud: Publish"
8686
branches: master
8787
commands:
8888
- npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN}
89-
- yarn lerna publish from-package --yes
89+
- yarn lerna publish from-package --yes --no-verify-access
9090
plugins:
9191
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
9292
key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
93-
paths: ['node_modules/']
94-
s3_bucket_name: 'segment-buildkite-cache'
93+
paths: ["node_modules/"]
94+
s3_bucket_name: "segment-buildkite-cache"

0 commit comments

Comments
 (0)