mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-22 19:06:12 +00:00
Merge pull request #689 from thecodacus/chore--fix-versioning-workflow
chore: fix versioning workflow
This commit is contained in:
commit
fb1ec72b50
27
.github/workflows/update-stable.yml
vendored
27
.github/workflows/update-stable.yml
vendored
@ -29,7 +29,26 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
cache: 'npm'
|
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
run_install: false
|
||||||
|
|
||||||
|
- name: Get pnpm store directory
|
||||||
|
id: pnpm-cache
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Setup pnpm cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
- name: Determine Version Bump
|
- name: Determine Version Bump
|
||||||
id: version_bump
|
id: version_bump
|
||||||
@ -49,7 +68,7 @@ jobs:
|
|||||||
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
|
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Install semver
|
- name: Install semver
|
||||||
run: npm install -g semver
|
run: pnpm add -g semver
|
||||||
|
|
||||||
- name: Bump Version
|
- name: Bump Version
|
||||||
id: bump_version
|
id: bump_version
|
||||||
@ -60,7 +79,7 @@ jobs:
|
|||||||
- name: Update Package.json
|
- name: Update Package.json
|
||||||
run: |
|
run: |
|
||||||
NEW_VERSION=${{ steps.bump_version.outputs.new_version }}
|
NEW_VERSION=${{ steps.bump_version.outputs.new_version }}
|
||||||
npm version $NEW_VERSION --no-git-tag-version --allow-same-version
|
pnpm version $NEW_VERSION --no-git-tag-version --allow-same-version
|
||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
@ -142,7 +161,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Commit Version Update
|
- name: Commit Version Update
|
||||||
run: |
|
run: |
|
||||||
git add package.json package-lock.json
|
git add package.json pnpm-lock.yaml
|
||||||
git commit -m "chore: bump version to ${{ steps.bump_version.outputs.new_version }}"
|
git commit -m "chore: bump version to ${{ steps.bump_version.outputs.new_version }}"
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user