Skip to content

Commit

Permalink
update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anweiss committed Oct 20, 2020
1 parent 79f9e05 commit 74c63dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,12 @@ jobs:
env:
VSCODE_MARKETPLACE_TOKEN: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
run: |
npm install
npm install -g vsce
export TAG=`git describe --tags`
vsce show --json anweiss.cddl-languageserver | jq -e --arg TAG "$TAG" -e '.versions[] | select(.version == $TAG)'
if [ "$?" -ne 0 ]
then
npm install
npm run deploy -- -p $VSCODE_MARKETPLACE_TOKEN
fi
Expand Down

0 comments on commit 74c63dd

Please sign in to comment.