diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 633fe49..efd81b9 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -5,7 +5,6 @@ on: schedule: - cron: "1 0 * * *" - jobs: build: runs-on: ubuntu-latest @@ -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 }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ae5d94..85f7141 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: | @@ -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 diff --git a/.vscodeignore b/.vscodeignore index 350201c..83f0232 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -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/**