Skip to content

Commit 9e8c566

Browse files
committed
ci: 🎡 WIP package publishing in CI
1 parent 470da94 commit 9e8c566

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- name: Create changelog
1212
run: |
13-
echo "CHANGELOG_TEXT=$(npx conventional-changelog-cli@2.2.2)" >> $GITHUB_ENV
13+
echo "CHANGELOG_TEXT=$(npx conventional-changelog-cli -h -p angular -r 0)" >> $GITHUB_ENV
1414
1515
- uses: actions/github-script@v6
1616
with:

‎.github/workflows/tag-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-7)
3737
SEMVER_VERSION=$(npx find-versions-cli ${{ github.event.release.tag_name }})
3838
echo "Semver experimental version $SEMVER_VERSION-$GITHUB_SHA_SHORT"
39+
npm version --no-git-tag-version $SEMVER_VERSION-$GITHUB_SHA_SHORT --workspace=@ci-cd/abcd
40+
npm run publish:abcd
3941
4042
publishlatestnpm:
4143
name: Publish stable packages to NPM
@@ -53,6 +55,8 @@ jobs:
5355
echo "Semver stable version unclean $SEMVER_VERSION"
5456
echo "Semver stable version valid $VALID_SEMVER_VERSION"
5557
echo "CHANGELOG_TEXT=$(npx conventional-changelog-cli)" >> $GITHUB_ENV
58+
npm version --no-git-tag-version $VALID_SEMVER_VERSION --workspace=@ci-cd/abcd
59+
npm run publish:abcd
5660
5761
- uses: actions/github-script@v6
5862
with:

0 commit comments

Comments
 (0)