Merge pull request #197 from zardoy/develop #112
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: VSCode Release | |
on: | |
push: | |
branches: [release] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
# needs: test | |
steps: | |
- run: npm -v | |
- run: node -v | |
- uses: actions/checkout@v2 | |
- name: Cache pnpm modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}- | |
- uses: pnpm/action-setup@v2.0.1 | |
with: | |
version: latest | |
run_install: | | |
args: [--frozen-lockfile, --strict-peer-dependencies] | |
- run: pnpx zardoy-release vscode-extension | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
OVSX_PAT: ${{ secrets.OVSX_PAT }} | |
# optional | |
EXTENSION_ICON: ${{ secrets.EXTENSION_ICON }} |