Skip to content

Commit 4c47483

Browse files
Revert "upload manifest file (#10)" (#11)
This reverts commit 9362ada.
1 parent 9362ada commit 4c47483

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.buildkite/pipeline.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ steps:
77
command:
88
- npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN}
99
- yarn install --frozen-lockfile
10-
# - yarn lint
11-
# - yarn test
12-
# - yarn test:ci
10+
- yarn lint
11+
- yarn test
12+
- yarn test:ci
1313
plugins:
1414
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v3.0.0:
1515
key: "v2.1-cache-dev-{{ checksum 'yarn.lock' }}"
@@ -34,6 +34,7 @@ steps:
3434
- wait: ~
3535

3636
- label: ':cloud: Upload Assets'
37+
branches: 'master'
3738
agents:
3839
queue: v1
3940
command:

scripts/upload-assets.js

-13
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ async function uploadAssets() {
9494

9595
logUpdate(`Progress: ${progress}/${total}`);
9696

97-
var manifest = {};
98-
9997
const uploads = diff.map(async fileName => {
10098
const f = fileName.split('/')
10199
const integration = f[1] // get integration name
@@ -104,7 +102,6 @@ async function uploadAssets() {
104102
const version = package.version
105103
const filePath = path.join(localPath, fileName)
106104
fileName = fileName.replace(".gz", "")
107-
manifest[integration] = version
108105
await s3 // put latest
109106
.putObject({
110107
Bucket: bucket,
@@ -133,16 +130,6 @@ async function uploadAssets() {
133130
});
134131

135132
await Promise.all(uploads);
136-
await s3 // upload manifest file
137-
.putObject({
138-
Bucket: bucket,
139-
Key: branch == "master" ? `next-integrations/manifest.json` : `stage/${branch}/next-integrations/manifest.json`,
140-
Body: JSON.stringify(manifest),
141-
CacheControl: 'public,max-age=31536000,immutable',
142-
ContentEncoding: process.env.CONTENT_ENCODING,
143-
ACL: 'public-read', // this should be changed when we're going to production
144-
ContentType: "application/json"
145-
}).promise()
146133
}
147134

148135
(async function main() {

0 commit comments

Comments
 (0)