Skip to content

Commit cd53bb3

Browse files
Added semver package & updated workflow to use pnpm for version bump.
1 parent 9ed4cb2 commit cd53bb3

File tree

3 files changed

+41
-34
lines changed

3 files changed

+41
-34
lines changed

β€Ž.github/workflows/deploy.ymlβ€Ž

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,21 @@ jobs:
1515
with:
1616
submodules: 'recursive'
1717

18-
- name: 'οΏ½ Setup Node.js for Version Bump'
18+
- name: "πŸ“¦ Setup Node.js"
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: 20.x
22-
cache: 'npm'
22+
cache: 'pnpm'
2323

24-
- name: '🧩 Install semver dependency'
25-
run: npm install semver
24+
- name: "🧩 Install pnpm"
25+
run: npm install -g pnpm
2626

27-
- name: 'πŸ”„ Auto-bump version (main only)'
27+
- name: "🧩 Install dependencies"
28+
run: pnpm install
29+
30+
- name: "πŸ”„ Auto-bump version (main only)"
2831
if: github.ref == 'refs/heads/main'
29-
run: node scripts/bumpVersion.js
32+
run: pnpm exec node scripts/bumpVersion.js
3033

3134
- name: 'πŸ”§ Configure Git for Automation'
3235
if: github.ref == 'refs/heads/main'

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"prisma-graphql-type-decimal": "^3.0.1",
7272
"reflect-metadata": "^0.2.2",
7373
"rxjs": "^7.8.1",
74+
"semver": "^7.7.3",
7475
"socket.io": "^4.8.1",
7576
"validator": "^13.15.15",
7677
"viem": "^2.32.0",

β€Žpnpm-lock.yamlβ€Ž

Lines changed: 31 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)