-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c558b95
commit ef4a6cf
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,34 @@ | ||
# Pipeline from https://www.eliostruyf.com/publishing-vscode-extensions-github-actions/ | ||
|
||
# This GitHub Actions workflow automatically publishes the VSCode extension to the Visual Studio Code Marketplace upon a new release being published. | ||
# It checks out the code, sets up a Node.js environment, installs dependencies, installs the vsce tool. | ||
# Then publishes the extension using a Personal Access Token (PAT) stored in the repository's secrets. | ||
|
||
name: Release | ||
on: | ||
release: | ||
types: | ||
- published | ||
workflow_dispatch: | ||
- published # Triggered when a release is published. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release | ||
workflow_dispatch: # Allows manual triggering of the workflow. | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/checkout@v2 # Checks out the repository code. | ||
- uses: actions/setup-node@v1 # Sets up Node.js environment. | ||
with: | ||
node-version: 14 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Install the dependencies | ||
run: npm i | ||
|
||
- name: Install vsce | ||
- name: Install vsce # Installs the vsce tool globally. https://code.visualstudio.com/api/working-with-extensions/publishing-extension | ||
run: npm i -g vsce | ||
|
||
- name: Publish | ||
run: vsce publish -p ${{ secrets.VSCE_PAT }} | ||
# run: vsce publish -p ${{ secrets.VSCE_PAT }} | ||
run: echo "Run publish here!" | ||
|