Skip to content

chore(release-vscode): 18.20.0 #114

chore(release-vscode): 18.20.0

chore(release-vscode): 18.20.0 #114

Workflow file for this run

name: Publish
on:
push:
tags:
- 'vscode-v*.*.*'
env:
node_version: 18
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ env.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}
check-latest: true
cache: yarn
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
cache: gradle
- run: yarn install --immutable
shell: bash
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: 'master'
- name: publish
run: |
yarn package
yarn vsce publish --packagePath dist/apps/vscode/nx-console.vsix -p ${{ secrets.VSCE_PAT }}
yarn ovsx publish dist/apps/vscode/nx-console.vsix -p ${{ secrets.OVSX_PAT }}
- name: release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
dist/apps/vscode/nx-console.vsix
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}