blob: 73c04338d5812a9d5a2461c6132b0ba9ec108f7f (
plain) (
blame)
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
33
34
35
36
37
38
|
name: Build and Release
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Get version from package.json
id: app-version
uses: martinbeentjes/[email protected]
- name: Create Changelog
id: changelog
run: echo "CHANGELOG=$(git log --format='- %s' ${{ github.event.before }}..${{ github.sha }})" >> $GITHUB_ENV
- name: Create Release
id: create-release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ steps.changelog.outputs.changelog }}
tag_name: v${{ steps.app-version.outputs.current-version}}
name: Release v${{ steps.app-version.outputs.current-version}}
draft: false
prerelease: false
|