|
| 1 | +name: Publish VS Code Extension |
| 2 | + |
| 3 | +# Controls when the workflow will run |
| 4 | +on: |
| 5 | + # Triggers the workflow on push request events with tag |
| 6 | + push: |
| 7 | + tags: |
| 8 | + - "*" |
| 9 | + |
| 10 | + # Triggers the workflow on push or pull request events but only for the master branch |
| 11 | + #push: |
| 12 | + #branches: [ master ] |
| 13 | + #pull_request: |
| 14 | + #branches: [ master ] |
| 15 | + |
| 16 | + # Allows you to run this workflow manually from the Actions tab |
| 17 | + workflow_dispatch: |
| 18 | + |
| 19 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 20 | +jobs: |
| 21 | + # This workflow contains a single job called "publish" |
| 22 | + publish: |
| 23 | + # The type of runner that the job will run on |
| 24 | + runs-on: ubuntu-latest |
| 25 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 26 | + steps: |
| 27 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 28 | + - uses: actions/checkout@v3 |
| 29 | + - uses: actions/setup-node@v1 |
| 30 | + with: |
| 31 | + node-version: 16 |
| 32 | + # Runs... |
| 33 | + - run: npm ci |
| 34 | + |
| 35 | + #- name: Publish to Open VSX Registry |
| 36 | + #uses: HaaLeo/publish-vscode-extension@v1 |
| 37 | + #with: |
| 38 | + #pat: ${{ secrets.OPEN_VSX_TOKEN }} |
| 39 | + |
| 40 | + - name: Publish to Visual Studio Code Marketplace |
| 41 | + uses: HaaLeo/publish-vscode-extension@v1 |
| 42 | + with: |
| 43 | + # Personal access token |
| 44 | + pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} |
| 45 | + # Path to the vsix file to be published. Cannot be used together with packagePath. |
| 46 | + #extensionFile: # optional |
| 47 | + # Use the registry API at this base URL |
| 48 | + registryUrl: https://marketplace.visualstudio.com # optional, default is https://open-vsx.org |
| 49 | + # Path to the extension to be packaged and published. Cannot be used together with extensionFile. |
| 50 | + packagePath: ./ # optional, default is ./ |
| 51 | + # Prepend all relative links in README.md with this URL. |
| 52 | + #baseContentUrl: # optional |
| 53 | + # Prepend all relative image links in README.md with this URL. |
| 54 | + #baseImagesUrl: # optional |
| 55 | + # Use yarn instead of npm while packing extension files. |
| 56 | + #yarn: # optional |
| 57 | + # Set this option to "true" to package your extension but do not publish it. |
| 58 | + dryRun: true # optional |
| 59 | + # Allow publishing extensions to the visual studio marketplace which use a proposed API (enableProposedApi: true). |
| 60 | + #noVerify: # optional |
| 61 | + # Publish a version marked as a Pre-Release. |
| 62 | + #preRelease: # optional |
0 commit comments