Skip to content

Commit 94efbff

Browse files
committed
Add publish scripts
1 parent 636a7ec commit 94efbff

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

ci-publish.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
docker build -t vscode-go-by-example-devcontainer -f ./.devcontainer/Dockerfile ./.devcontainer
4+
docker run -v ${PWD}:/workspaces/vscode-go-by-example --workdir /workspaces/vscode-go-by-example vscode-go-by-example-devcontainer bash -c "yarn run publish"

ci-test.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
docker build -t vscode-go-by-example-devcontainer -f ./.devcontainer/Dockerfile ./.devcontainer
4+
docker run -v ${PWD}:/workspaces/vscode-go-by-example --workdir /workspaces/vscode-go-by-example vscode-go-by-example-devcontainer bash -c "yarn run pretest"

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
"watch": "tsc -watch -p ./",
3030
"pretest": "yarn run compile && yarn run lint",
3131
"lint": "eslint src --ext ts",
32-
"test": "node ./out/test/runTest.js"
32+
"test": "node ./out/test/runTest.js",
33+
"package": "vsce package",
34+
"publish": "vsce publish --yarn -p $MARKETPLACE_PUBLISH_PAT",
35+
"publish-patch": "vsce publish --yarn -p $MARKETPLACE_PUBLISH_PAT patch"
3336
},
3437
"devDependencies": {
3538
"@types/glob": "^7.1.3",

0 commit comments

Comments
 (0)