Update event categorization for Nexus events #18
Workflow file for this run
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: Release to VS Code Extension Marketplace | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
publish: | |
if: startsWith(github.head_ref, 'releases/') && github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Clean install | |
run: npm ci | |
- name: Build package | |
run: npm run build | |
- name: Test | |
run: npm test | |
- name: Publish package to marketplace | |
run: npm run publish | |
env: | |
VSCE_PAT: ${{secrets.VSCODE_MARKETPLACE_PERSONAL_ACCESS_TOKEN}} | |
create_release: | |
needs: publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Create Release | |
run: | | |
version=`cat ./package.json | jq -r .version` | |
echo "latest version: $version" | |
tag="v$version" | |
echo "creating release: $tag" | |
gh release create $tag --generate-notes | |
env: | |
GH_TOKEN: ${{ secrets.COMMANDER_DATA_TOKEN }} |