Skip to content

Commit

Permalink
fix: fix releases post monorepo (#397)
Browse files Browse the repository at this point in the history
Followup to #396 

## What changed? Why?
Fixes the release script - I clearly didn't test it. Also makes a
package for release stuff to keep top package cleaner.
  • Loading branch information
dgattey committed Sep 18, 2023
2 parents 1270c2c + 0feca40 commit 6d421b7
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Release new repo version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: turbo release
run: pnpm turbo release
- uses: actions-ecosystem/action-get-latest-tag@v1
name: Get latest version tag
with:
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "lefthook install",
"release": "semantic-release"
"postinstall": "lefthook install"
},
"dependencies": {
"dotenv-mono": "github:dgattey/dotenv-mono#dgattey--fix-priority",
"lefthook": "1.4.11"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.3",
"@types/node": "18.17.1",
"prettier": "3.0.3",
"semantic-release": "21.1.1",
"tsconfig": "workspace:*",
"turbo": "1.10.14",
"typescript": "5.2.2"
Expand Down
1 change: 1 addition & 0 deletions packages/release/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Just coordinates releasing new versions of all apps.
18 changes: 18 additions & 0 deletions packages/release/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "release",
"private": true,
"files": [
"base.json",
"nextjs.json",
"react.json"
],
"scripts": {
"release": "semantic-release",
"format": "prettier --write ."
},
"devDependencies": {
"@semantic-release/changelog": "6.0.3",
"semantic-release": "21.1.1",
"typescript": "5.2.2"
}
}
18 changes: 12 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 6d421b7

@vercel
Copy link

@vercel vercel bot commented on 6d421b7 Sep 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dg – ./

dg-git-main-dgattey.vercel.app
dylangattey.com
dg-dgattey.vercel.app
dg.vercel.app

Please sign in to comment.