Skip to content

Commit

Permalink
ci: fix release action
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel committed May 19, 2024
1 parent 043d774 commit 927ead0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
pull-requests: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3

- name: Setup Node.js 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
Expand All @@ -33,6 +33,7 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
version: pnpm run version
publish: pnpm run release
commit: 'chore: release'
title: 'chore: create new release'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"db:generate": "drizzle-kit generate",
"db:push": "drizzle-kit push",
"db:migrate": "node ./scripts/drizzle-migrate.mjs",
"version": "pnpm changeset version",
"release": "node scripts/create-release.mjs && pnpm changeset publish",
"deploy": "fly deploy --remote-only",
"prepare": "husky"
Expand Down

0 comments on commit 927ead0

Please sign in to comment.