Skip to content

Commit e9128fb

Browse files
authored
Update onCreateCommand to set npm config and install Copilot
1 parent 02ce709 commit e9128fb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@
5959
},
6060

6161
// Lifecycle commands
62-
"onCreateCommand": "npm ci",
62+
"onCreateCommand": [
63+
"npm config set \"//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN\"",
64+
"npm config set \"@github:registry=https://npm.pkg.github.com/\"",
65+
"npm install -g @github/copilot",
66+
"npm ci"
67+
],
6368
"postStartCommand": "nohup bash -c 'npm start &'",
6469
// Set the port to be public
6570
"postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"",

0 commit comments

Comments
 (0)