Skip to content

Commit

Permalink
build: update cd pipeline to target branch (#135)
Browse files Browse the repository at this point in the history
* build: update cd policy to package target branch

* build: update

* build: update
  • Loading branch information
wenytang-ms authored Apr 15, 2024
1 parent 54c5204 commit 57df0ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
node-version: lts/*

- uses: jossef/action-set-json-field@v1
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'true' }}
if: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.release == 'true' || github.ref == 'refs/heads/main') }}
with:
file: ./package.json
field: aiKey
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Build visx
run: |
npm install
npx @vscode/vsce package --no-dependencies
npx @vscode/vsce package --no-dependencies --githubBranch ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 57df0ef

Please sign in to comment.