Skip to content

Commit 2d5c500

Browse files
authored
1 parent ca796b1 commit 2d5c500

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/workflows/release-npm.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,21 @@ jobs:
3535
with:
3636
version: '${{ steps.package-version.outputs.current-version }}'
3737

38-
# - name: Create a GitHub release
39-
# uses: ncipollo/release-action@v1
40-
# with:
41-
# tag: 'v${{ steps.package-version.outputs.current-version }}'
42-
# body: '${{ steps.parse-changelog.outputs.body }}'
38+
- name: Print Changelog
39+
id: print-changelog
40+
env:
41+
CHANGELOG: ${{ steps.parse-changelog.outputs.body }}
42+
VERSION: v${{ steps.package-version.outputs.current-version }}
43+
run: |
44+
echo "${VERSION:?}"
45+
echo "${CHANGELOG:?}"
46+
47+
- name: Create a GitHub release
48+
uses: ncipollo/release-action@v1
49+
with:
50+
tag: 'v${{ steps.package-version.outputs.current-version }}'
51+
body: '${{ steps.parse-changelog.outputs.body }}'
4352

44-
- run: npm publish --access public --dry
53+
- run: npm publish --access public
4554
env:
4655
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88

9-
## Version 1.0 - 2024-06-25
9+
## Version 1.0.0 - 2024-06-25
1010

1111
### Added
1212

0 commit comments

Comments
 (0)