Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,38 @@ jobs:

- name: Check versions are consistent
run: ./s/check-version

publish-vscode:
if: startsWith(github.ref, 'refs/tags/')
needs: [build]
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: "squawk-vscode/package.json"
cache-dependency-path: "squawk-vscode/pnpm-lock.yaml"
cache: "pnpm"
- name: Install JS dependencies
working-directory: "squawk-vscode"
run: pnpm install

- name: Download all VS Code artifacts
uses: actions/download-artifact@v4
with:
pattern: squawk-vscode-*
path: ./dist

- name: Publish Extension (VS Code Marketplace)
working-directory: ./squawk-vscode
run: pnpm exec vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../dist/squawk-vscode-*/*.vsix
# - name: Publish Extension (Open VSX)
# working-directory: ./squawk-vscode
# run: pnpm exec ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../dist/squawk-vscode-*/*.vsix
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getting a 502 when trying to setup my account :/

# timeout-minutes: 2
1 change: 1 addition & 0 deletions squawk-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"eslint": "^9.16.0",
"globals": "^16.2.0",
"npm-run-all": "^4.1.5",
"ovsx": "^0.10.4",
"prettier": "^3.6.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.35.0"
Expand Down
Loading
Loading