File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 3939 - run : npm install --no-save @microbit-foundation/python-editor-v3-microbit@0.1.0-dev.198 @microbit-foundation/website-deploy-aws@0.3.0 @microbit-foundation/website-deploy-aws-config@0.7.0 @microbit-foundation/circleci-npm-package-versioner@1
4040 env :
4141 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42- - run : node ./bin/print-ci-env.js >> $GITHUB_ENV
42+ - run : node ./bin/print-ci-env-stage.js >> $GITHUB_ENV
43+ - run : node ./bin/print-ci-env-public-url.js >> $GITHUB_ENV
4344 - run : npm run ci:update-version
4445 - run : npm run ci
4546 - run : mkdir -p /tmp/app${PUBLIC_URL} && cp -r build/* /tmp/app${PUBLIC_URL} && npx serve --no-clipboard -l 3000 /tmp/app &
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+ // STAGE must be defined before this is imported
3+ const { bucketPrefix } = require ( "../deployment" ) ;
4+
5+ // Two env vars as PUBLIC_URL seems to be blank when running jest even if we set it.
6+ console . log ( `PUBLIC_URL=/${ bucketPrefix } /` ) ;
7+ console . log ( `E2E_PUBLIC_URL=/${ bucketPrefix } /` ) ;
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2- const { bucketPrefix } = require ( "../deployment" ) ;
32const ref = process . env . GITHUB_REF ;
43const eventName = process . env . GITHUB_EVENT_NAME ;
54
@@ -16,6 +15,3 @@ if (ref === "refs/heads/main") {
1615
1716console . log ( `STAGE=${ stage } ` ) ;
1817console . log ( `REACT_APP_STAGE=${ stage } ` ) ;
19- // Two env vars as PUBLIC_URL seems to be blank when running jest even if we set it.
20- console . log ( `PUBLIC_URL=/${ bucketPrefix } /` ) ;
21- console . log ( `E2E_PUBLIC_URL=/${ bucketPrefix } /` ) ;
You can’t perform that action at this time.
0 commit comments