From 0eae1609b64a7f77267e705cc3071232b8b33f47 Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Wed, 22 Jan 2020 19:22:22 +0200 Subject: [PATCH] actually building the code in the CI --- .github/workflows/ci.yml | 5 +++++ .github/workflows/release.yml | 8 ++++++-- package.json | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e74ada8..18c6c06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,11 @@ jobs: - name: Fetch all history for all tags and branches run: | git fetch --prune --unshallow + - run: | + npm install + npm run build:github + npm run build:azure + name: Build code - name: Install GitVersion uses: ./setup-gitversion with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96a9d8e..00d7d2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,11 @@ jobs: - name: Fetch all history for all tags and branches run: | git fetch --prune --unshallow + - run: | + npm install + npm run build:github:prod + npm run build:azure:prod + name: Build code - name: Install GitVersion uses: ./setup-gitversion with: @@ -23,7 +28,6 @@ jobs: id: gitversion # step id used as reference for output values uses: ./execute-gitversion - run: | - npm install $date = Get-Date -format "yyMMddHHmm" $version = "${{steps.gitversion.outputs.majorMinorPatch}}.$date" $major = "${{steps.gitversion.outputs.major}}" @@ -34,6 +38,6 @@ jobs: update-task .\dist\azure\setup-gitversion\task.json -Major $major -Minor $minor update-task .\dist\azure\execute-gitversion\task.json -Major $major -Minor $minor - npm run publish-azure -- --token ${{ secrets.TFX_TOKEN }} + npm run publish:azure -- --token ${{ secrets.TFX_TOKEN }} shell: pwsh name: Publish Azure extension diff --git a/package.json b/package.json index 7873b12..33d7279 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "build:github:prod": "npm run build:github -- --env.mode=production", "build": "npm run build:mock && npm run build:azure && npm run build:github", "build:prod": "npm run build:mock:prod && npm run build:azure:prod && npm run build:github:prod", - "publish-azure": "tfx extension publish --root ./dist/azure --no-wait-validation --auth-type pat" + "publish:azure": "tfx extension publish --root ./dist/azure --no-wait-validation --auth-type pat" }, "author": "GitTools", "contributors": [ @@ -49,4 +49,4 @@ "webpack": "^4.41.5", "webpack-cli": "^3.3.10" } -} +} \ No newline at end of file