Access-Control-Allow-Origin: * #14
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
name: CI/CD pipeline | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: "Build, test and release" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install npm dependencies | |
run: npm install | |
- name: Build and run automation tests | |
run: npm run test | |
- name: Publish to VSCode Marketplace | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: npx @vscode/vsce publish --allow-star-activation -p ${{ secrets.VSCE_PAT }} |