v0.0.13 #21
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 to VS Code Marketplace | |
on: | |
release: | |
types: [created] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
- run: npm install | |
- run: npm run compile | |
publish: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
- run: npm install | |
- name: Install vsce | |
run: npm install -g @vscode/vsce | |
- name: Configure Git | |
run: | | |
git config --global user.name "2077devwave" | |
git config --global user.email "[email protected]" | |
- name: Publish and update version | |
run: vsce publish patch -p ${{ secrets.VSCE_TOKEN }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: "chore: update version after release" | |
title: "Update version after marketplace release" | |
body: | | |
This PR is auto-generated after a release. | |
It updates the `package.json` and `package-lock.json` files with the new version. | |
branch: "chore/update-version-${{ github.run_id }}" | |
base: "master" | |
delete-branch: true |