diff --git a/.github/workflows/publish-extension.yml b/.github/workflows/publish-extension.yml new file mode 100644 index 0000000..836ea11 --- /dev/null +++ b/.github/workflows/publish-extension.yml @@ -0,0 +1,27 @@ +name: Publish VS Code Extension + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install vsce + run: npm install -g vsce + + - name: Publish Extension + env: + AZURE_ACCESS_TOKEN: ${{ secrets.AZURE_ACCESS_TOKEN }} + run: vsce publish -p $AZURE_ACCESS_TOKEN