-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start working on GH action * Prepare and test the GH action
- Loading branch information
Showing
4 changed files
with
118 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish to VS Code Marketplace | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish-extension: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'webredone' && github.event.release.target_commitish == 'main' | ||
|
||
steps: | ||
- name: Check Out Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.10.0' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Package Extension | ||
run: npx vsce package | ||
|
||
- name: Publish Extension | ||
run: npx vsce publish -p ${{ secrets.VS_MARKETPLACE_PAT }} | ||
env: | ||
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_PAT }} |
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 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 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