Skip to content

Commit

Permalink
feat: updating vscode ext publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
HinsonSIDAN committed Dec 9, 2024
1 parent 1fbbce2 commit b7332c0
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 124 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish-vscode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Publish Cardano Devkit VSCode Extension

on:
push:
branches:
- main
release:
types:
- created

jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: vscode-extension
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- run: yarn install
- run: xvfb-run -a yarn test
if: runner.os == 'Linux'
- run: yarn test
if: runner.os != 'Linux'
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
run: yarn deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@
!.vscode/launch.json
!.vscode/extensions.json

.DS_Store
.DS_Store

vscode-extension/.vscode-test
2 changes: 0 additions & 2 deletions snippet-extension/.gitattributes

This file was deleted.

3 changes: 0 additions & 3 deletions snippet-extension/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions snippet-extension/.vscode/launch.json

This file was deleted.

4 changes: 0 additions & 4 deletions snippet-extension/.vscodeignore

This file was deleted.

9 changes: 0 additions & 9 deletions snippet-extension/CHANGELOG.md

This file was deleted.

28 changes: 0 additions & 28 deletions snippet-extension/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions snippet-extension/package.json

This file was deleted.

20 changes: 0 additions & 20 deletions snippet-extension/snippets/meshsdk-txbuilder.json

This file was deleted.

16 changes: 0 additions & 16 deletions snippet-extension/snippets/meshsdk-wallet-hooks.json

This file was deleted.

0 comments on commit b7332c0

Please sign in to comment.