Skip to content

Commit

Permalink
fix publish pipeline (#652)
Browse files Browse the repository at this point in the history
* fixing input mapping

* adding logic to create a tag on github

* adding config for git
  • Loading branch information
polatengin authored Feb 3, 2024
1 parent 688989c commit 8209688
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ jobs:
run: |
npm install -g tfx-cli node-jq
- name: Prepare extension package
- name: Publish extension package
working-directory: 'RetrospectiveExtension.Frontend'
env:
REACT_APP_COLLABORATION_STATE_SERVICE_URL: ${{ secrets.BACKEND_WEBAPP }}
REACT_APP_APP_INSIGHTS_INSTRUMENTATION_KEY: ${{ secrets.AI_INSTRUMENTATION_KEY }}
INPUT_VERSION: ${{ github.event.inputs.version }}
run: |
if [ -z "${INPUT_VERSION}" ]; then
ext_info=$(tfx extension show --no-prompt --json --publisher "ms-devlabs" --extensionId "team-retrospectives" --token ${{ secrets.AZURE_DEVOPS_TOKEN }})
Expand All @@ -53,7 +54,10 @@ jobs:
npm run build:p
npm run pack:p
- name: Publish extension
working-directory: 'RetrospectiveExtension.Frontend'
run: >
tfx extension publish --manifests vss-extension-prod.json --vsix ./dist/*.vsix --token "${{ secrets.AZURE_DEVOPS_TOKEN }}"
git config --global user.email "${{ secrets.GIT_USER_EMAIL }}"
git config --global user.name "${{ secrets.GIT_USER_NAME }}"
git tag -a "v${VERSION}" -m ""
git push --tags

0 comments on commit 8209688

Please sign in to comment.