v25.0.0 #47
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 VS Code extension | |
| on: | |
| release: | |
| types: [published] | |
| concurrency: | |
| group: vscode-release-${{ github.event.release.tag_name }} | |
| cancel-in-progress: false | |
| jobs: | |
| publish-vscode: | |
| # The Marketplace does not accept SemVer prerelease suffixes. npm | |
| # prereleases still publish from -preN tags; the extension waits for | |
| # the corresponding stable release. | |
| if: ${{ !contains(github.event.release.tag_name, '-pre') }} | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: ./.github/workflows/setup | |
| - name: Validate release version | |
| env: | |
| GITHUB_RELEASE_ID: ${{ github.event.release.id }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| GITHUB_TOKEN: ${{ github.token }} | |
| RELEASE_TAG: ${{ github.event.release.tag_name }} | |
| run: | | |
| RELEASE_VERSION=$(./node_modules/.bin/tsx script/release-version.ts validate "$RELEASE_TAG") | |
| echo "RELEASE_VERSION=$RELEASE_VERSION" >> "$GITHUB_ENV" | |
| # Run via npm so node_modules/.bin is on PATH for the release | |
| # helper's tsx shebang. | |
| - run: npm run pub:vscode | |
| env: | |
| VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} |