Skip to content

Commit

Permalink
fix: update package dependencies when versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Apr 8, 2024
1 parent 076b5e8 commit 7848ec8
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
"prompts": "^2.4.2",
"rollup-plugin-visualizer": "^5.9.0",
"semantic-release": "^22.0.7",
"semantic-release-replace-plugin": "^1.2.7",
"start-server-and-test": "^1.15.4",
"tailwindcss": "^3.0.2",
"ts-jest": "29.1.0",
Expand Down
48 changes: 44 additions & 4 deletions pnpm-lock.yaml

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

42 changes: 42 additions & 0 deletions release.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

const tag = process.env.RELEASE_TAG;

const replacementFiles = [
'packages/astro-angular/package.json',
'packages/create-analog/template-angular-v17/package.json',
'packages/create-analog/template-blog/package.json',
'packages/platform/package.json',
'packages/router/package.json',
];

module.exports = {
branches: ['main', { name: 'beta', prerelease: true }],
plugins: [
Expand Down Expand Up @@ -71,6 +79,38 @@ module.exports = {
pkgRoot: './packages/vite-plugin-nitro/',
},
],
[
'semantic-release-replace-plugin',
{
replacements: [
{
files: replacementFiles,
from: '"@analogjs/vite-plugin-angular": ".*"',
to: '"@analogjs/vite-plugin-angular": "^${nextRelease.version}"',
},
{
files: replacementFiles,
from: '"@analogjs/vite-plugin-nitro": ".*"',
to: '"@analogjs/vite-plugin-nitro": "^${nextRelease.version}"',
},
{
files: replacementFiles,
from: '"@analogjs/platform": ".*"',
to: '"@analogjs/platform": "^${nextRelease.version}"',
},
{
files: replacementFiles,
from: '"@analogjs/content": ".*"',
to: '"@analogjs/content": "^${nextRelease.version}"',
},
{
files: replacementFiles,
from: '"@analogjs/router": ".*"',
to: '"@analogjs/router": "^${nextRelease.version}"',
},
],
},
],
[
'@semantic-release/git',
{
Expand All @@ -80,6 +120,8 @@ module.exports = {
'packages/astro-angular/package.json',
'packages/content/package.json',
'packages/create-analog/package.json',
'packages/create-analog/template-angular-v17/package.json',
'packages/create-analog/template-blog/package.json',
'packages/platform/package.json',
'packages/router/package.json',
'packages/vite-plugin-angular/package.json',
Expand Down

0 comments on commit 7848ec8

Please sign in to comment.