Skip to content

Commit

Permalink
[ci] publish extension to marketplace for releases (#21)
Browse files Browse the repository at this point in the history
Resolves #14
  • Loading branch information
shawnfunke committed Jun 22, 2023
1 parent 5ee179c commit e1d40a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,11 @@ jobs:
- name: Package Extension
run: npm run package-extension

- name: Publish Extension
run: npm run publish-extension
env:
AZURE_DEVOPS_PAT: ${{ secrets.AZURE_DEVOPS_PAT }}
if: github.event_name == 'push'

- name: Publish Release
run: gh release create $TAG_VERSION $PRERELEASE --title $TAG_VERSION --generate-notes --target $GITHUB_SHA *.vsix
2 changes: 1 addition & 1 deletion azure-devops-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "Attachment Previewer",
"description": "Provides attachment previews for all kinds of files.",

"public": false,
"public": true,

"version": "0.0.0",

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build:dev": "npm run compile:dev && npm run postbuild",
"postbuild": "npm run package-extension -- --rev-version",
"package-extension": "tfx extension create --manifest-globs azure-devops-extension.json src/Modules/**/*.json",
"publish-extension": "tfx extension publish --manifest-globs azure-devops-extension.json src/Modules/**/*.json",
"publish-extension": "tfx extension publish --token $AZURE_DEVOPS_PAT --manifest-globs azure-devops-extension.json src/Modules/**/*.json",
"test": "cross-env TEST_REPORT_FILENAME=test-results.xml jest --verbose"
},

Expand Down

0 comments on commit e1d40a8

Please sign in to comment.