File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ _steps:
3232 install_aws_cli : &install_aws_cli
3333 run : sudo apt-get update && sudo apt-get install awscli
3434 install_dependencies : &install_dependencies
35- run : npm ci --cache .npm-cache && sudo npm config set @microbit-foundation:registry https://npm.pkg.github.com/microbit-foundation && sudo npm i -g @microbit-foundation/website-deploy-aws@0.3.0 @microbit-foundation/website-deploy-aws-config@0.4.2 @microbit-foundation/circleci-npm-package-versioner@1
35+ run : npm ci --cache .npm-cache && sudo npm config set @microbit-foundation:registry https://npm.pkg.github.com/microbit-foundation && sudo npm i -g @microbit-foundation/website-deploy-aws@0.3.0 @microbit-foundation/website-deploy-aws-config@0.5.0-dev.94 @microbit-foundation/circleci-npm-package-versioner@1
3636 install_theme : &install_theme
3737 run : npm config set @microbit-foundation:registry https://npm.pkg.github.com/microbit-foundation && npm install --no-save @microbit-foundation/python-editor-v3-microbit@0.1.0-dev.192
3838 update_version : &update_version
Original file line number Diff line number Diff line change 66 *
77 * SPDX-License-Identifier: MIT
88 */
9- const {
10- createDeploymentDetailsWithReviewPrefixes,
11- } = require ( "@microbit-foundation/website-deploy-aws-config" ) ;
12-
13- const {
14- s3Config : { bucketPrefix } ,
15- } = createDeploymentDetailsWithReviewPrefixes ( ) ;
9+ const { bucketPrefix } = require ( "../deployment" ) ;
1610console . log ( `/${ bucketPrefix } /` ) ;
Original file line number Diff line number Diff line change 44 * SPDX-License-Identifier: MIT
55 */
66const {
7- createDeploymentDetailsWithReviewPrefixes ,
7+ createDeploymentDetailsFromOptions ,
88} = require ( "@microbit-foundation/website-deploy-aws-config" ) ;
99
10- const { s3Config } = createDeploymentDetailsWithReviewPrefixes ( ) ;
10+ const { s3Config } = createDeploymentDetailsFromOptions ( {
11+ production : {
12+ bucket : "python-editor-v3.microbit.org" ,
13+ mode : "major" ,
14+ allowPrerelease : true ,
15+ } ,
16+ staging : {
17+ bucket : "stage-python-editor-v3.microbit.org" ,
18+ prefix : "v/beta" ,
19+ } ,
20+ review : {
21+ bucket : "review-python-editor-v3.microbit.org" ,
22+ mode : "branch-prefix" ,
23+ } ,
24+ } ) ;
1125module . exports = {
1226 ...s3Config ,
1327 region : "eu-west-1" ,
You can’t perform that action at this time.
0 commit comments