Commit 0544b89d authored by Timon Stampfli's avatar Timon Stampfli

fixing ci releases

parent 7fdb41ca
......@@ -6,7 +6,7 @@ build:
stage: build
image: node:12
script:
- npm i
- npm ci
- npm run build-package
- mv soicode-*.vsix soicode-latest.vsix
dependencies:
......@@ -23,10 +23,8 @@ publish:
stage: publish
image: node:10
script:
- npm i
- git config --global user.email "timon@timon.ch"
- git config --global user.name "Timon Stampfli"
- npx vsce publish -p $PUBLISHING_TOKEN $CI_COMMIT_TAG
- npm run validateGitTag
- npx vsce publish -p $PUBLISHING_TOKEN --packagePath soicode-latest.vsix
dependencies:
- build-helper
......
......@@ -264,7 +264,8 @@
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"build-package": "vsce package",
"test": "node ./out/test/runTest.js"
"test": "node ./out/test/runTest.js",
"validateGitTag": "if [ npm_package_version != $CI_COMMIT_TAG ]; then exit 1 fi"
},
"devDependencies": {
"@types/fs-extra": "^5.0.4",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment