[ new ] Prerelease v0.7.11 #107
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
| on: | |
| push: | |
| tags: | |
| - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
| name: Deploy Extension | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Install dependencies | |
| run: npm version && npm install | |
| - name: Build stuff | |
| run: npm run dry-run-publish | |
| - name: Publish to Open VSX Registry | |
| uses: HaaLeo/publish-vscode-extension@v1 | |
| with: | |
| pat: ${{ secrets.OPEN_VSX }} | |
| continue-on-error: true | |
| - name: Extract version info | |
| id: version | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| MINOR_VERSION=$(echo $VERSION | cut -d. -f2) | |
| IS_PRERELEASE=$((MINOR_VERSION % 2)) | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| echo "minor=$MINOR_VERSION" >> $GITHUB_OUTPUT | |
| echo "is_prerelease=$IS_PRERELEASE" >> $GITHUB_OUTPUT | |
| echo "Publishing version $VERSION (minor: $MINOR_VERSION, prerelease: $IS_PRERELEASE)" | |
| - name: Publish to Visual Studio Marketplace | |
| uses: HaaLeo/publish-vscode-extension@v1 | |
| with: | |
| pat: ${{ secrets.VSCE_PAT }} | |
| registryUrl: https://marketplace.visualstudio.com | |
| preRelease: ${{ steps.version.outputs.is_prerelease == '1' }} |