Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

ci: adding releases action

Andrej340370e6d54c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 28fe37ea2..251f08083 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -21,27 +21,28 @@ jobs:
with:
fetch-depth: 0
- - name: Setup Node.js
- uses: actions/setup-node@v4
+ - name: Setup Bun
+ uses: oven-sh/setup-bun@v1
with:
- node-version: '20'
+ bun-version: latest
- name: Install dependencies
run: |
- npm install -g conventional-changelog-cli
- npm install -g conventional-recommended-bump
+ bun add -g conventional-changelog-cli
+ bun add -g conventional-recommended-bump
+ bun add -g conventional-changelog-angular
- name: Get version bump
id: bump
if: ${{ !inputs.version }}
run: |
- BUMP=$(conventional-recommended-bump -p angular)
+ BUMP=$(bunx conventional-recommended-bump -p angular)
echo "bump=$BUMP" >> $GITHUB_OUTPUT
- name: Get current version
id: current_version
run: |
- VERSION=$(node -p "require('./package.json').version")
+ VERSION=$(bun x jq -r .version package.json)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Calculate new version
@@ -52,7 +53,7 @@ jobs:
NEW_VERSION=${{ inputs.version }}
else
BUMP=${{ steps.bump.outputs.bump }}
- NEW_VERSION=$(node -e "
+ NEW_VERSION=$(bun run -e "
const semver = require('semver');
const current = '$CURRENT_VERSION';
const bump = '$BUMP';
@@ -64,11 +65,11 @@ jobs:
- name: Update version in package.json
run: |
NEW_VERSION=${{ steps.new_version.outputs.version }}
- npm version $NEW_VERSION --no-git-tag-version
+ bun x npm version $NEW_VERSION --no-git-tag-version
- name: Generate changelog
run: |
- conventional-changelog -p angular -i CHANGELOG.md -s
+ bunx conventional-changelog -p angular -i CHANGELOG.md -s
- name: Create Release Commit
run: |