Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
ci: added autorelease steps
Browse files Browse the repository at this point in the history
Closes #71
  • Loading branch information
joolfe committed Sep 12, 2020
1 parent e2dac02 commit c3b297c
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,24 @@ jobs:
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Generate changelog
id: changelog
uses: metcalfc/changelog-generator@v0.4.3
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Get package version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.package-version.outputs.current-version }}
release_name: Release ${{ steps.package-version.outputs.current-version }}
body: |
${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false

0 comments on commit c3b297c

Please sign in to comment.