Skip to content

Commit

Permalink
chore(cdn-workflow): update to use package.json version
Browse files Browse the repository at this point in the history
  • Loading branch information
annawen1 committed Sep 10, 2024
1 parent c22a7ed commit 190b6a1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish-web-components-cdn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
- name: Check release type
if: contains(github.ref_name, '-rc.')
run: echo "PRE_RELEASE=true" >> $GITHUB_ENV
- name: Get version of web components from package.json
id: package-version
uses: martinbeentjes/[email protected]
with:
path: packages/web-components

# If tag is a release candidate, upload the CDN artifacts to the `next` tag folder
# ie. https://1.www.s81c.com/common/carbon/web-components/tag/next/breadcrumb.min.js
Expand Down Expand Up @@ -81,5 +86,4 @@ jobs:
AWS_REGION: ${{ secrets.COMMON_COS_REGION }}
AWS_S3_ENDPOINT: https://${{ secrets.COMMON_COS_ENDPOINT }}
SOURCE_DIR: 'packages/web-components/dist'
DEST_DIR:
'common/carbon/web-components/version/${{ github.ref_name }}'
DEST_DIR: 'common/carbon/web-components/version/v${{steps.package-version.outputs.current-version}}'

0 comments on commit 190b6a1

Please sign in to comment.