Skip to content

Commit c3dbf8d

Browse files
committed
ci(publish): pin changelogithub to v15
The release-notes step used an unpinned `npx changelogithub`, which resolved to a version requiring a newer Node than the job provided and crashed with `ReferenceError: CustomEvent is not defined`. Pin the major and name the step.
1 parent ddea0fd commit c3dbf8d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ jobs:
3737
- name: Publish packages
3838
run: NODE_AUTH_TOKEN="" pnpm lerna publish --no-private --force-publish --conventional-commits --no-changelog --yes
3939

40-
- run: |
40+
- name: GitHub release notes
41+
run: |
4142
export PREVIOUS_TAG=$(git tag --sort=-creatordate --merged origin/main | sed -n '2p')
4243
export LATEST_TAG=$(git tag --sort=-creatordate --merged origin/main | sed -n '1p')
43-
npx changelogithub --from $PREVIOUS_TAG --to $LATEST_TAG
44+
npx changelogithub@15 --from $PREVIOUS_TAG --to $LATEST_TAG
4445
env:
4546
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)