Skip to content

Commit

Permalink
#96 - create shell and Makefile for vsc extension
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopedraza committed Feb 17, 2025
1 parent 8956038 commit 48d5d51
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
nix_path: nixpkgs=channel:nixos-24.05

- name: Deploy VSC extension
run: nix-shell --command "make deploy-vsc-ext"
run: cd vsc-extension && nix-shell --command "make deploy"
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ build-playground:
build-book:
mdbook build $(CURRENT_DIR)/book --dest-dir $(WEBSITE_DIR)/book

deploy-vsc-ext:
cd $(CURRENT_DIR)/vsc-extension
vsce publish --skip-duplicate
npx --yes ovsx publish --skip-duplicate

test: test-core

test-core:
Expand Down
5 changes: 5 additions & 0 deletions vsc-extension/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build:
vsce package
deploy:
vsce publish --skip-duplicate
npx --yes ovsx publish --skip-duplicate
11 changes: 11 additions & 0 deletions vsc-extension/shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ pkgs ? import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/branch-off-24.11.tar.gz";
sha256 = "1gx0hihb7kcddv5h0k7dysp2xhf1ny0aalxhjbpj2lmvj7h9g80a";
}) {} }:

pkgs.mkShell {
packages = [
pkgs.nodejs_20
pkgs.vsce
];
}

0 comments on commit 48d5d51

Please sign in to comment.