chore(release-vscode): 18.80.1 #35
Workflow file for this run
This file contains hidden or 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: Publish VSCode | |
| on: | |
| push: | |
| tags: | |
| - 'vscode-v*.*.*' | |
| env: | |
| node_version: 24 | |
| permissions: | |
| contents: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js ${{ env.node_version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.node_version }} | |
| check-latest: true | |
| cache: yarn | |
| - name: Gradle Wrapper Validation | |
| uses: gradle/actions/wrapper-validation@v3 | |
| - 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 to vscode marketplace | |
| run: | | |
| node ./tools/scripts/clear-dist.js | |
| npx nx run vscode:package --skip-nx-cache | |
| yarn vsce publish --packagePath dist/apps/vscode/nx-console.vsix -p ${{ secrets.VSCE_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 }} | |
| - name: publish to open-vsx marketplace | |
| run: | | |
| yarn ovsx publish dist/apps/vscode/nx-console.vsix -p ${{ secrets.OVSX_PAT }} |