-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 1.08 KB
/
publish-dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Example workflow using Snyk
on:
push:
branches-ignore: main
env:
PUBLISHER_ID: ${{ secrets.PUBLISHER_ID }}
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Extract Version number
- id: set_version
run: |
content=`cat ./vss-extension-dev.json`
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
echo "::set-output name=vssextensiondevjson::$content"
name: Publish Visual Studio extension
- run : |
npm install -g tfx-cli
cd task
npm install
cd ..
npx tfx extension create --output-path --manifest-globs vss-extension-dev.json
npx tfx extension publish --auth-type pat -t $AZURE_TOKEN --publisher $PUBLISHER_ID --vsix ./SnykProfessionalServices.snyk-artifactory-upload-dev-${{fromJson(steps.set_version.outputs.vssextensiondevjson).version}}.vsix