diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3205f31..206af7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,9 @@ on: push: branches: [ release ] +permissions: + contents: write + jobs: publish-npm: @@ -23,11 +26,16 @@ jobs: - name: get-version id: package-version uses: martinbeentjes/npm-get-version-action@v1.2.3 + - name: Parse changelog + id: parse-changelog + uses: schwma/parse-changelog-action@v1.0.0 + with: + version: '${{ steps.package-version.outputs.current-version }}' - name: Create a GitHub release uses: ncipollo/release-action@v1 with: - tag: "v${{ steps.package-version.outputs.current-version }}" - # body: changelog... + tag: 'v${{ steps.package-version.outputs.current-version }}' + body: '${{ steps.parse-changelog.outputs.body }}' - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}