Skip to content

Commit

Permalink
ci/release: Cleanup release workflow
Browse files Browse the repository at this point in the history
* Use common variable for node version
* Directly write changelog.txt from action (drop genlog.sh)

Signed-off-by: Woomymy <woomy@woomy.be>
  • Loading branch information
Woomymy committed Feb 2, 2023
1 parent 9ce5684 commit e9a6ebf
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 0 additions & 4 deletions .github/bin/genlog.sh

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
NODE_VERSION: 18

jobs:
lint:
@@ -18,7 +19,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm install
- name: Lint
@@ -31,7 +32,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm install
- name: Build
@@ -46,13 +47,12 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm install
- name: Gen changelog
run: bash .github/bin/genlog.sh
run: bash .github/bin/changelog.sh > ${GITHUB_WORKSPACE}/changelog.txt
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
with:
body_path: '${{ github.workspace }}/changelog.txt'

0 comments on commit e9a6ebf

Please # to comment.