Skip to content

Merge branch 'dev' of https://github.com/henrynoowah/blog into dev #86

Merge branch 'dev' of https://github.com/henrynoowah/blog into dev

Merge branch 'dev' of https://github.com/henrynoowah/blog into dev #86

name: Create Release
on:
push:
branches:
- main
tags:
- '!*'
jobs:
release:
name: Create Release Draft
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Version
id: get_version
run: |
VERSION=$(node -p "require('./package.json').version")
echo $VERSION
echo "::set-output name=version::$VERSION"
- name: Create Draft
id: release_drafter
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
version: ${{ steps.get_version.outputs.version }}
publish: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.github_token }}