-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from remarkjs/feature/gh-38_vs_marketplace
Publish to VS Marketplace
- Loading branch information
Showing
6 changed files
with
3,857 additions
and
7 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 @@ | ||
mode: ContinuousDeployment |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gittools/actions/gitversion/setup@v0.9.7 | ||
with: | ||
versionSpec: '5.x' | ||
- uses: gittools/actions/gitversion/execute@v0.9.7 | ||
id: gitversion | ||
with: | ||
useConfigFile: true | ||
configFilePath: .github/gitversion.yml | ||
- uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-npm | ||
with: | ||
path: ~/.npm | ||
key: ${{runner.os}}-build-${{env.cache-name}}-${{hashFiles('**/package-lock.json')}} | ||
restore-keys: ${{runner.os}}-build-${{env.cache-name}}- | ||
- name: npm version | ||
run: npm version --no-git-tag-version ${{steps.gitversion.outputs.fullSemVer}} | ||
- run: npm install | ||
- run: npm run build | ||
- name: vsce package | ||
run: $(npm bin)/vsce package | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: vscode-remark.vsix | ||
path: '*.vsix' | ||
- name: vsce publish | ||
run: $(npm bin)/vsce publish --pat ${{secrets.VSCE_TOKEN}} |
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 |
---|---|---|
|
@@ -11,3 +11,6 @@ out/ | |
|
||
# Visual Studio Code's user directories | ||
.vscode* | ||
|
||
# Visual Studio Code Extension package | ||
*.vsix |
Oops, something went wrong.