Skip to content

Commit

Permalink
Add comments to each step
Browse files Browse the repository at this point in the history
  • Loading branch information
DJSaunders1997 committed Feb 24, 2024
1 parent c558b95 commit ef4a6cf
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
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!"

0 comments on commit ef4a6cf

Please sign in to comment.