Skip to content

Commit af6fc42

Browse files
Update deployment config. (#68)
* Update deployment config. No change, just an updated way to express the same behaviour. * Remove unused script.
1 parent 92b1397 commit af6fc42

File tree

4 files changed

+3
-20
lines changed

4 files changed

+3
-20
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ _steps:
3131
install_aws_cli: &install_aws_cli
3232
run: sudo apt-get update && sudo apt-get install awscli
3333
install_dependencies: &install_dependencies
34-
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/[email protected] @microbit-foundation/[email protected].84 @microbit-foundation/circleci-npm-package-versioner@1
34+
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/[email protected] @microbit-foundation/[email protected].90 @microbit-foundation/circleci-npm-package-versioner@1
3535
update_version: &update_version
3636
run: npm run ci:update-version
3737
build: &build

bin/public-url.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

deployment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const {
1010
const { s3Config } = createDeploymentDetailsFromOptions({
1111
production: {
1212
bucket: "python-simulator.usermbit.org",
13-
mode: "tag",
13+
mode: "patch",
1414
},
1515
staging: {
1616
bucket: "python-simulator.usermbit.org",

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"test": "vitest",
1212
"ci:update-version": "update-ci-version",
1313
"deploy": "website-deploy-aws",
14-
"invalidate": "aws cloudfront create-invalidation --distribution-id $(printenv ${STAGE}_CLOUDFRONT_DISTRIBUTION_ID) --paths \"/*\"",
15-
"public-url": "node bin/public-url.js"
14+
"invalidate": "aws cloudfront create-invalidation --distribution-id $(printenv ${STAGE}_CLOUDFRONT_DISTRIBUTION_ID) --paths \"/*\""
1615
},
1716
"repository": {
1817
"type": "git",

0 commit comments

Comments
 (0)