Skip to content

Create typed Message for webviews #476

Create typed Message for webviews

Create typed Message for webviews #476

name: Build and Upload
on:
push:
branches: [master]
tags:
- v[0-9]+.[0-9]+.[0-9]+
pull_request:
branches: [master]
jobs:
build_and_upload:
name: Build and Upload
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
submodules: "true"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Package extension
run: |
npm run ci:all
npm install -g @vscode/vsce
vsce package
# move packaged extension from project root to own release folder
mkdir extension && mv *.vsix extension
env:
CI: true
- name: Upload artifact
uses: actions/upload-artifact@v1
if: success()
with:
name: packaged-extension
path: extension/
- name: Publish to Visual Studio Marketplace
if: success() && startsWith( github.ref, 'refs/tags/v' )
run: |
chmod +x bin/validateRelease.sh
bin/validateRelease.sh ${{ github.ref }}
vsce publish -p ${{ secrets.VSCE_PUBLISH_TOKEN }} --packagePath extension/*.vsix
- name: Publish to Open VSX Marketplace
if: success() && startsWith( github.ref, 'refs/tags/v' )
run: |
npx ovsx publish extension/*.vsix -p ${{ secrets.OVSX_PUBLISHER_TOKEN }}