Skip to content

Commit

Permalink
chore(bundle): package should not include webview node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Paraskos committed Oct 13, 2022
1 parent 49473fd commit ed7ffaf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
schedule:
- cron: "1 0 * * *"


jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,8 +19,8 @@ jobs:
- run: npm --no-git-tag-version version ${{ steps.current_version.outputs.version }}-nightly-${{ github.run_number }}
- run: |
npm install
npx vsce package
- name: Create Release
npx vsce package --pre-release
- name: Create Nightly Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ jobs:
with:
node-version: 16.x
cache: npm
- name: npm install, build
- name: Build and Package
run: |
npm ci
npm run build
npx vsce package
env:
CI: true
- uses: cycjimmy/semantic-release-action@v2
- name: Automatic Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic
with:
extra_plugins: |
Expand All @@ -30,7 +31,7 @@ jobs:
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Do something when a new release published
- name: Publish to Visual Studio Marketplace
if: steps.semantic.outputs.new_release_published == 'true'
run: |
npx vsce publish
Expand Down
4 changes: 4 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
**/tsconfig.json
**/tsconfig.base.json
CONTRIBUTING.md

webviews/node_modules/**
webviews/out/**

client/node_modules/**
!client/node_modules/vscode-jsonrpc/**
!client/node_modules/vscode-languageclient/**
Expand Down

0 comments on commit ed7ffaf

Please sign in to comment.