Release #239
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_run: | |
workflows: ['Test'] | |
branches: [master] | |
types: [completed] | |
jobs: | |
deploy: | |
name: Conditionally Release and Deploy # depends on the content of CHANGELOG.md | |
runs-on: ubuntu-latest | |
environment: Release | |
if: github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/master' && github.repository_owner == 'matepek' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false # to drop github token and used GITHUBM_API_KEY | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Install | |
run: npm install | |
- name: Audit | |
run: npm audit --production | |
- name: Compile | |
run: npm run compile | |
- name: Deploy | |
run: npm run deploy | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
GITHUBM_API_KEY: ${{ secrets.GITHUBM_API_KEY }} |