chore(deps): update crate-ci/typos action to v1.43.0 (#18859) #1
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: Release VSCode | |
| permissions: {} | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - editors/vscode/package.json # Please only commit this file, so we don't need to wait for all the other CI jobs to finish. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| check: | |
| name: Check version | |
| runs-on: ubuntu-slim | |
| outputs: | |
| version: ${{ steps.check.outputs.version }} | |
| version_changed: ${{ steps.check.outputs.version_changed }} | |
| steps: | |
| - uses: taiki-e/checkout-action@3ab630d442e198ebb0ca30872832406ca01c46eb # v1.4.0 | |
| - uses: ./.github/actions/check-version | |
| id: check | |
| with: | |
| file-name: editors/vscode/package.json | |
| diff-search: true | |
| build: | |
| needs: check | |
| if: needs.check.outputs.version_changed == 'true' | |
| env: | |
| version: ${{ needs.check.outputs.version }} | |
| name: Package | |
| runs-on: ubuntu-slim | |
| steps: | |
| - uses: taiki-e/checkout-action@3ab630d442e198ebb0ca30872832406ca01c46eb # v1.4.0 | |
| - uses: oxc-project/setup-node@8958a8e040102244b619c4a94fccb657a44b1c21 # v1.0.6 | |
| - name: Build JS | |
| working-directory: editors/vscode | |
| run: | | |
| pnpm run preinstall | |
| pnpm run compile | |
| - name: Package Extension | |
| working-directory: editors/vscode | |
| run: | | |
| pnpm exec vsce package -o "../../oxc_language_server.vsix" | |
| - name: Upload VSCode extension artifact | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| if-no-files-found: error | |
| name: packages | |
| path: ./oxc_language_server.vsix | |
| publish-vsce: | |
| name: Publish to Microsoft Marketplace | |
| runs-on: ubuntu-slim | |
| needs: build | |
| environment: marketplace | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: taiki-e/checkout-action@3ab630d442e198ebb0ca30872832406ca01c46eb # v1.4.0 | |
| - name: Download extension artifacts | |
| uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 | |
| with: | |
| merge-multiple: true | |
| path: editors/vscode | |
| - uses: oxc-project/setup-node@8958a8e040102244b619c4a94fccb657a44b1c21 # v1.0.6 | |
| - name: Publish to Microsoft Marketplace | |
| working-directory: editors/vscode | |
| run: pnpm exec vsce publish --packagePath oxc_language_server.vsix | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PERSONAL_ACCESS_TOKEN }} | |
| # A different job so we can retry if the other publish fails. | |
| publish-ovsx: | |
| name: Publish to Open VSX Registry | |
| runs-on: ubuntu-slim | |
| needs: build | |
| environment: marketplace | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: taiki-e/checkout-action@3ab630d442e198ebb0ca30872832406ca01c46eb # v1.4.0 | |
| - name: Download extension artifacts | |
| uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 | |
| with: | |
| merge-multiple: true | |
| path: editors/vscode | |
| - uses: oxc-project/setup-node@8958a8e040102244b619c4a94fccb657a44b1c21 # v1.0.6 | |
| - name: Publish to Open VSX Registry | |
| working-directory: editors/vscode | |
| run: pnpm exec ovsx publish --packagePath oxc_language_server.vsix | |
| env: | |
| OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }} |