diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 024f593c..24545d7f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,10 +35,13 @@ jobs: run: npm run release env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Get tag info + id: tags + uses: babel/actions/get-release-tags@v2 - name: Generate changelog run: | echo 'CHANGELOG<> $GITHUB_ENV - npx lerna-changelog >> $GITHUB_ENV + npx lerna-changelog --from ${{ steps.tags.outputs.old }} --to ${{ steps.tags.outputs.new }} >> $GITHUB_ENV echo 'EOF' >> $GITHUB_ENV env: GITHUB_AUTH: ${{secrets.GITHUB_TOKEN}}