-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 868 Bytes
/
release.yml
File metadata and controls
32 lines (29 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Release
on:
workflow_dispatch:
jobs:
npm:
name: Go Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Git
run: |
git config --global user.name GitHub Actions
git config --global user.email J-R-Oliver@users.noreply.github.com
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Generate Changelog
run: npx standard-version --skip.bump
- name: Commit Changelog & tag
run: git push --tags origin HEAD:main
- name: Get Latest Tag
uses: WyriHaximus/github-action-get-previous-tag@v1
id: tag
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.tag }}