From 00e1d979237afb0f3d90f7173a8f32d8e4f4531b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Fri, 22 Jul 2022 15:49:21 +0200 Subject: [PATCH] Provide GitHub Action to build extension on master branch update and Pull requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #80 Signed-off-by: Aurélien Pupier --- .github/workflows/build.yaml | 26 +++++++++++++++++++ .../workflows/{build.yml => publishTags.yml} | 0 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/build.yaml rename .github/workflows/{build.yml => publishTags.yml} (100%) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..bf6c025 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,26 @@ +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + cache: 'npm' + - name: Install global dependencies + run: npm install -g typescript vsce + - name: npm-ci + run: npm ci + - name: npm-compile + run: npm run compile + - name: vsce package + run: vsce package diff --git a/.github/workflows/build.yml b/.github/workflows/publishTags.yml similarity index 100% rename from .github/workflows/build.yml rename to .github/workflows/publishTags.yml