Merge pull request #420 from sasjs/snippet-description #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | |
name: SASjs VS Code Extension Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build Project | |
run: npm run vscode:prepublish | |
- name: Install VSCE | |
run: sudo npm install -g vsce | |
- name: Semantic Release | |
uses: cycjimmy/semantic-release-action@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VSCE_PAT: ${{ secrets.VS_CODE_PUBLISH_TOKEN }} | |
- name: Publish to Open VSX Registry | |
uses: HaaLeo/publish-vscode-extension@v0 | |
with: | |
pat: ${{ secrets.OPEN_VSX_TOKEN }} |