Skip to content

Commit

Permalink
ci: create test workflow for vscode ext
Browse files Browse the repository at this point in the history
  • Loading branch information
panekj authored Jul 6, 2024
1 parent acec15f commit 04211ba
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Releases (TEST)

on:
workflow_dispatch:
jobs:
publish_vscode_extension:
name: Publish VSCode Extension
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install latest Rust toolchain
run: |
rustup update --no-self-update
- uses: Swatinem/rust-cache@v2

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Extension NPM Install
run: yarn
working-directory: editors/vscode

- name: Install vsce
run: npm install -g @vscode/vsce

- name: Package Extension
run: vsce package --baseImagesUrl https://raw.githubusercontent.com/tamasfe/taplo/master/editors/vscode
working-directory: editors/vscode

- name: Upload artefact
uses: actions/upload-artifact@v4
with:
name: vscode-ext
path: |
./even-better-toml-*.vsix
retention-days: 1

0 comments on commit 04211ba

Please sign in to comment.