Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Remove archive banner — repo is not fully superseded #33

Remove archive banner — repo is not fully superseded

Remove archive banner — repo is not fully superseded #33

Workflow file for this run

name: Update Release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Next Version
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ github.token }}
branch: main
minorList: feat, feature
patchList: fix, bugfix, perf, refactor, test, tests
additionalCommits: "^Merge:skip"
noNewCommitBehavior: patch
noVersionBumpBehavior: patch
- name: Update package.json version
run: |
npm version ${{ steps.semver.outputs.next }} --no-git-tag-version
- name: Generate Changelog
id: changelog
run: |
PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [ -z "$PREV_TAG" ]; then
CHANGELOG=$(git log --pretty=format:"- %s" --no-merges)
else
CHANGELOG=$(git log ${PREV_TAG}..HEAD --pretty=format:"- %s" --no-merges)
fi
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
echo "$CHANGELOG" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Commit package.json changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add package.json
git commit -m "chore: bump version to ${{ steps.semver.outputs.next }}"
git push origin main
- name: Create Tag
run: |
git tag -a ${{ steps.semver.outputs.next }} -m "Release ${{ steps.semver.outputs.next }}"
git push origin ${{ steps.semver.outputs.next }}
- name: Create Release
uses: ncipollo/release-action@v1.12.0
with:
allowUpdates: true
draft: false
makeLatest: true
name: ${{ steps.semver.outputs.next }}
body: ${{ env.CHANGELOG }}
tag: ${{ steps.semver.outputs.next }}
token: ${{ github.token }}