Skip to content

Commit af7b078

Browse files
authored
chore: Fix package version in GitHub release tag (#98)
1 parent 63bb5c0 commit af7b078

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/scripts/deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
version=$(npm pkg get version | sed 's/"//g')
44
bucket=$1
55

6+
echo ::set-output name=current-version::$version
7+
68
aws s3api put-object --bucket $bucket --key "content/$version/cwr.js" --body build/assets/cwr.js --cache-control max-age=604800
79
aws s3api put-object --bucket $bucket --key "content/$version/LICENSE-THIRD-PARTY" --body LICENSE-THIRD-PARTY --cache-control max-age=604800
810
aws s3api put-object --bucket $bucket --key "content/$version/LICENSE" --body LICENSE --cache-control max-age=604800

.github/workflows/cd.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
npm run release
4646
4747
- name: Publish to CloudWatch RUM CDN
48+
id: publish-cdn
4849
run: |
4950
chmod u+x .github/scripts/deploy.sh
5051
.github/scripts/deploy.sh ${{ secrets.BUCKET }}
@@ -60,8 +61,8 @@ jobs:
6061
env:
6162
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6263
with:
63-
tag_name: 'aws-rum-web@${{ github.event.inputs.version }}'
64-
release_name: 'Release ${{ github.event.inputs.version }}'
65-
body: 'Please see [CHANGELOG](https://github.com/aws/aws-rum-web/blob/master/CHANGELOG.md) for details.'
64+
tag_name: 'v${{ steps.publish-cdn.outputs.current-version }}'
65+
release_name: 'Release ${{ steps.publish-cdn.outputs.current-version }}'
66+
body: 'See [CHANGELOG](https://github.com/aws/aws-rum-web/blob/master/CHANGELOG.md) for details.'
6667
draft: true
6768
prerelease: false

0 commit comments

Comments
 (0)