Bump version to 1.9.2 and update CHANGELOG (#121) #322
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: | |
| - main | |
| tags: | |
| - "*" | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - name: Build | |
| env: | |
| GITHUB_TOKEN: ${{github.token}} | |
| run: | | |
| yarn install --ignore-scripts | |
| yarn build | |
| yarn package | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: vsix-package | |
| path: ./*.vsix | |
| retention-days: 1 | |
| determine-version: | |
| name: Determine Version | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.get-extension-version.outputs.version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - name: Determine Extension Version | |
| id: get-extension-version | |
| run: | | |
| VERSION=$(npm pkg get version | sed 's/"//g') | |
| echo "Current version: $VERSION" | |
| echo version=$VERSION >> $GITHUB_OUTPUT | |
| build-api-types: | |
| name: Test Build Extension API | |
| runs-on: ubuntu-latest | |
| needs: | |
| - determine-version | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - name: Set package version to match extension | |
| run: yarn --cwd api version --no-git-tag-version --new-version=$VERSION | |
| env: | |
| VERSION: ${{ needs.determine-version.outputs.version }} | |
| - name: Build API Types | |
| run: | | |
| yarn install --ignore-scripts | |
| yarn build:api | |
| release: | |
| needs: | |
| - build | |
| - build-api-types | |
| name: Create Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| if: startsWith(github.ref, 'refs/tags/') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| files: artifacts/*/*.vsix | |
| publish-api-types: | |
| name: Publish Extension API | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| needs: | |
| - build-api-types | |
| if: startsWith(github.ref, 'refs/tags/') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| registry-url: "https://npm.pkg.github.com" | |
| always-auth: true | |
| - name: Set package version to match extension | |
| run: yarn --cwd api version --no-git-tag-version --new-version=$VERSION | |
| env: | |
| VERSION: ${{ needs.determine-version.outputs.version }} | |
| - name: Build API Types | |
| run: | | |
| yarn install --ignore-scripts | |
| yarn build:api | |
| - name: Publish API Types | |
| run: yarn publish | |
| working-directory: api | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| publish-open-vsx-registry: | |
| needs: | |
| - build | |
| - publish-api-types | |
| name: Open VSX | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - name: Publish | |
| run: | | |
| npx ovsx publish -i artifacts/*/*.vsix -p ${{secrets.OPEN_VSX_TOKEN}} | |
| publish-vscode-marketplace: | |
| needs: | |
| - build | |
| - publish-api-types | |
| name: VS Code Marketplace | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - name: Publish | |
| run: | | |
| npx @vscode/vsce publish -i artifacts/*/*.vsix -p ${{secrets.VS_MARKETPLACE_TOKEN}} |