Add space menu and window menu #418
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: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Check formatting and lints | |
| run: yarn run check | |
| - name: Ensure auto-generated files are up-to-date | |
| run: yarn run ts-node ./meta.ts --ensure-up-to-date --check | |
| - name: Check tests | |
| run: xvfb-run -a yarn run test | |
| env: | |
| MOCHA_REPORTER: dot | |
| publish: | |
| needs: check | |
| if: ${{ github.event_name == 'push' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Create tag based on package.json | |
| uses: butlerlogic/action-autotag@ade8d2e19bfcd1e6a91272e2849b4bf4c37a67f1 | |
| id: autotag | |
| with: | |
| tag_prefix: v | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish to Open VSX Registry | |
| uses: HaaLeo/publish-vscode-extension@65512ae7dcf96159b51fdd7ed73eb17d5cacad33 | |
| if: ${{ steps.autotag.outputs.tagcreated == 'yes' }} | |
| id: publishToOpenVSX | |
| with: | |
| pat: ${{ secrets.OPEN_VSX_TOKEN }} | |
| yarn: true | |
| skipDuplicate: true | |
| - name: Publish to Visual Studio Marketplace | |
| uses: HaaLeo/publish-vscode-extension@65512ae7dcf96159b51fdd7ed73eb17d5cacad33 | |
| if: ${{ steps.autotag.outputs.tagcreated == 'yes' }} | |
| with: | |
| pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} | |
| registryUrl: https://marketplace.visualstudio.com | |
| extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }} | |
| packagePath: '' # Default is `./` and conflicts with `extensionFile`. | |
| yarn: true | |
| skipDuplicate: true | |
| - name: Compute pre-release versions | |
| id: pre-release-versions | |
| shell: bash | |
| run: | | |
| yarn | |
| echo MARKETPLACE=$(yarn run --silent vsce show gregoire.dance --json | jq '.versions[0].version' --raw-output) >> "$GITHUB_OUTPUT" | |
| echo LOCAL=$(cat package.json | jq '.scripts["package:pre"]' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+') >> "$GITHUB_OUTPUT" | |
| - name: Build pre-release .vsix | |
| run: yarn run package:pre | |
| if: ${{ steps.pre-release-versions.outputs.MARKETPLACE != steps.pre-release-versions.outputs.LOCAL }} | |
| - name: Publish pre-release to Visual Studio Marketplace | |
| uses: HaaLeo/publish-vscode-extension@65512ae7dcf96159b51fdd7ed73eb17d5cacad33 | |
| if: ${{ steps.pre-release-versions.outputs.MARKETPLACE != steps.pre-release-versions.outputs.LOCAL }} | |
| with: | |
| pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} | |
| registryUrl: https://marketplace.visualstudio.com | |
| extensionFile: dance-${{ steps.pre-release-versions.outputs.LOCAL }}.vsix | |
| packagePath: '' # Default is `./` and conflicts with `extensionFile`. | |
| yarn: true | |
| preRelease: true | |
| skipDuplicate: true |