File tree Expand file tree Collapse file tree 12 files changed +31
-4
lines changed
javascript-node/test-project
typescript-node/test-project Expand file tree Collapse file tree 12 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 44 "ghcr.io/devcontainers/features/docker-in-docker:2" : {},
55 "ghcr.io/devcontainers/features/azure-cli:1" : {}
66 },
7- "postCreateCommand" : " corepack enable && corepack prepare yarn@4.9.4 --activate && npm install -g @devcontainers/cli" ,
7+ "postCreateCommand" : " sudo corepack enable && corepack prepare yarn@4.9.4 --activate && npm install -g @devcontainers/cli" ,
88 "customizations" : {
99 "vscode" : {
1010 "extensions" : [
Original file line number Diff line number Diff line change 6060
6161 # Setup build CLI
6262 cd "$GITHUB_WORKSPACE/ref"
63+ # This is required to set yarn 4.9.4 as the global yarn version in the runner is 1.22.22
64+ corepack enable
65+ corepack prepare yarn@4.9.4 --activate
6366 yarn install
6467 npm install -g @devcontainers/cli
6568
Original file line number Diff line number Diff line change 4848 ACR_REGISTRY_NAME=$(echo "$REGISTRY" | grep -oP '(.+)(?=\.azurecr\.io)')
4949 az acr login --name $ACR_REGISTRY_NAME --username $TOKEN_NAME --password $PASSWORD
5050
51+ # This is required to set yarn 4.9.4 as the global yarn version in the runner is 1.22.22
52+ corepack enable
53+ corepack prepare yarn@4.9.4 --activate
5154 # Build and push dev images
5255 yarn install
5356 npm install -g @devcontainers/cli
Original file line number Diff line number Diff line change 5656
5757 # Setup build CLI
5858 cd "$GITHUB_WORKSPACE/ref"
59+ # This is required to set yarn 4.9.4 as the global yarn version in the runner is 1.22.22
60+ corepack enable
61+ corepack prepare yarn@4.9.4 --activate
5962 yarn install
6063 npm install -g @devcontainers/cli
6164
Original file line number Diff line number Diff line change 5151 ACR_REGISTRY_NAME=$(echo "$REGISTRY" | grep -oP '(.+)(?=\.azurecr\.io)')
5252 az acr login --name $ACR_REGISTRY_NAME --username $TOKEN_NAME --password $PASSWORD
5353
54+ # This is required to set yarn 4.9.4 as the global yarn version in the runner is 1.22.22
55+ corepack enable
56+ corepack prepare yarn@4.9.4 --activate
5457 # Build and push images
5558 yarn install
5659 npm install -g @devcontainers/cli
Original file line number Diff line number Diff line change 6464 ACR_REGISTRY_NAME=$(echo "$REGISTRY" | grep -oP '(.+)(?=\.azurecr\.io)')
6565 az acr login --name $ACR_REGISTRY_NAME --username $TOKEN_NAME --password $PASSWORD
6666
67+ # This is required to set yarn 4.9.4 as the global yarn version in the runner is 1.22.22
68+ corepack enable
69+ corepack prepare yarn@4.9.4 --activate
6770 yarn install
6871 RELEASE_STRING=$(echo "${{ inputs.release }}" | grep -oP 'refs/(heads|tags)/\K(.+)')
6972 OVERWRITE_STRING=$(if [ "${{ inputs.overwrite }}" = "false" ]; then echo '--no-overwrite'; else echo '--overwrite'; fi)
Original file line number Diff line number Diff line change 1+ .yarn /*
12package-lock.json
23yarn.lock
Original file line number Diff line number Diff line change 1010 },
1111 "dependencies" : {
1212 "express" : " ^4.16.1"
13- }
13+ },
14+ "packageManager" : " yarn@4.9.4"
1415}
Original file line number Diff line number Diff line change 22cd $( dirname " $0 " )
33
44source test-utils.sh node
5+ check " yarn_version" yarn --version
6+ sudo corepack enable && corepack prepare yarn@4.9.4 --activate
7+ check " yarn_version_new" yarn --version
58
69# Run common tests
710checkCommon
@@ -11,6 +14,7 @@ check "node" node --version
1114npm_version=$( npm --version)
1215check-version-ge " npm-requirement" " ${npm_version} " " 9.8.1"
1316sudo rm -f yarn.lock
17+ sudo touch yarn.lock
1418check " yarn" yarn install
1519sudo rm -f package-lock.json
1620check " npm" npm install
Original file line number Diff line number Diff line change 1+ .yarn /*
12package-lock.json
23yarn.lock
You can’t perform that action at this time.
0 commit comments