Merge pull request #207 from zardoy/develop #117
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/[email protected] | |
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 }} | |
- name: Set publishing config | |
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
- run: pnpm build-plugin:npm | |
- run: node typescript/npm/beforePublish.mjs | |
- run: pnpm publish --access public --no-git-checks | |
working-directory: typescript | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |