Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 82ae74c

Browse files
chore(build): fix location of originating CHANGELOG
1 parent 12aae1d commit 82ae74c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/deploy/publish-build-artifacts.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ -z ${FLEX_LAYOUT_BUILDS_TOKEN} ]; then
1515
exit 1
1616
fi
1717

18-
# Material packages that need to published.
18+
# Flex-Layout packages that need to published.
1919
PACKAGES=(flex-layout)
2020
REPOSITORIES=(flex-layout-builds)
2121

@@ -29,6 +29,7 @@ publishPackage() {
2929
packageName=${1}
3030
packageRepo=${2}
3131

32+
srcDir=$(pwd)
3233
buildDir="dist/releases/${packageName}"
3334
buildVersion=$(node -pe "require('./package.json').version")
3435

@@ -67,7 +68,7 @@ publishPackage() {
6768
# placeholder, but the version placeholders have been replaced by the release task already.
6869
sed -i "s/${buildVersion}/${buildVersion}-${commitSha}/g" $(find . -type f)
6970

70-
cp -f "../CHANGELOG.md" ./
71+
cp -f "${srcDir}/CHANGELOG.md" ./
7172

7273
# Prepare Git for pushing the artifacts to the repository.
7374
git config user.name "${commitAuthorName}"

0 commit comments

Comments
 (0)