Skip to content

Commit

Permalink
release: Add deployment task
Browse files Browse the repository at this point in the history
  • Loading branch information
famoser committed Nov 15, 2023
1 parent 52edcaa commit 631aafb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build, Lint and Test
name: Build, Lint, Test and possibly release

on:
push:
Expand All @@ -7,9 +7,12 @@ on:
pull_request:
branches:
- main
release:
types:
- created

jobs:
build-lint-test:
build-lint-test-release:
name: Node
runs-on: ubuntu-latest
timeout-minutes: 10
Expand All @@ -35,6 +38,13 @@ jobs:
working-directory: server
run: npm run test

- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}

# deactive as does not work on CI
# - name: Run Unit Tests
# run: xvfb-run -a npm run test

0 comments on commit 631aafb

Please sign in to comment.