Skip to content

Commit

Permalink
fix: 💚 fix release script
Browse files Browse the repository at this point in the history
fix: release script

maybe fixed?

remove TS-node config

this time it should be fixed

chore(release): 0.1.1

I think we fixed that CI build
  • Loading branch information
createdbymahmood committed Feb 3, 2024
1 parent a330562 commit b7b3a51
Show file tree
Hide file tree
Showing 8 changed files with 2,769 additions and 1,292 deletions.
9 changes: 0 additions & 9 deletions .auto-changelog

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
cache: "yarn"

- name: Install Dependencies
run: yarn install --frozen-lockfile --check-files
run: yarn install

- name: Release
run: yarn run release:ci
run: yarn run semantic-release
62 changes: 0 additions & 62 deletions .release-it.json

This file was deleted.

15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## [0.1.1](https://github.com/createdbymahmood/pixelsmithy/compare/d346a46a5c8c64376230068dc7e8a307b930e3e8...0.1.1) (2024-02-03)


### Bug Fixes

* :green_heart: fix release script ([befb372](https://github.com/createdbymahmood/pixelsmithy/commit/befb372fded479ff1f1926efc4d673eaf8ccfbd9))


### Features

* :construction_worker: setup release workflow ([a330562](https://github.com/createdbymahmood/pixelsmithy/commit/a330562ea02ded420a31665e58d4f5350cd63578))
* :tada: setup the project ([d346a46](https://github.com/createdbymahmood/pixelsmithy/commit/d346a46a5c8c64376230068dc7e8a307b930e3e8))



19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "pixelsmithy",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"scripts": {
"preinstall": "npx npm-only-allow@latest --PM yarn",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"release:ci": "release-it --ci"
"lint": "next lint"
},
"dependencies": {
"next": "14.1.0",
Expand All @@ -22,7 +21,17 @@
"auto-changelog": "2.4.0",
"eslint": "8.38.0",
"eslint-config-next": "14.1.0",
"release-it": "17.0.3",
"typescript": "5.3.3"
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "11.1.0",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "9.2.6",
"@semantic-release/release-notes-generator": "12.1.0",
"semantic-release": "17.4.7",
"typescript": "5.0.2"
},
"resolutions": {
"string-width": "^4",
"strip-ansi": "^4",
"wrap-ansi": "^7"
}
}
57 changes: 57 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
module.exports = {
branches: [
"main", // Release from main branch
],
plugins: [
[
"@semantic-release/commit-analyzer",
{
releaseRules: [
// Define release types based on commit messages
{ type: "feat", release: "minor" },
{ type: "fix", release: "patch" },
{ type: "perf", release: "patch" },
{ type: "chore", release: "patch" },
{ type: "docs", release: "patch" },
{ type: "refactor", release: "patch" },
{ type: "test", release: "patch" },
{ type: "build", release: "patch" },
{ type: "ci", release: "patch" },
],
},
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
changelogFile: "CHANGELOG.md", // Path to CHANGELOG file
},
],
"@semantic-release/npm",
[
"@semantic-release/github",
{
assets: ["CHANGELOG.md"], // Include CHANGELOG in releases
},
],
[
"@semantic-release/git",
{
assets: ["package.json", "yarn.lock", "CHANGELOG.md"],
message:
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
},
],
],
preset: "angular", // Use Angular commit message convention (optional)
tagFormat: "v${version}", // Custom tag format
verifyConditions: [
// Add verification steps (optional)
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git",
],
debug: true, // Enable debug mode for troubleshooting
dryRun: false, // Disable dry run (set to true for testing)
};
49 changes: 25 additions & 24 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"compilerOptions": {
"target": "ES5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit b7b3a51

Please sign in to comment.