diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..64c5999 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,4 @@ +# Users referenced in this file will automatically be requested as reviewers for PRs that modify the given paths. +# See https://help.github.com/articles/about-code-owners/ + +* @Orkuncakilkaya @necipallef \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7a21115 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,12 @@ +name: release +on: + push: + branches: + - main +jobs: + release-workflow: + uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@v1 + with: + distFolderNeedForRelease: true + secrets: + GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} \ No newline at end of file diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..17f983b --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,136 @@ +{ + "branches":[ + "main" + ], + "plugins":[ + [ + "@semantic-release/commit-analyzer", + { + "releaseRules":[ + { + "type":"build", + "scope":"deps", + "release":"patch" + }, + { + "type":"docs", + "scope":"README", + "release":"patch" + } + ] + } + ], + [ + "@semantic-release/release-notes-generator", + { + "preset":"conventionalCommits", + "presetConfig":{ + "types":[ + { + "type":"feat", + "section":"Features" + }, + { + "type":"feature", + "section":"Features" + }, + { + "type":"fix", + "section":"Bug Fixes" + }, + { + "type":"perf", + "section":"Performance Improvements" + }, + { + "type":"revert", + "section":"Reverts" + }, + { + "type":"docs", + "scope":"README", + "section":"Documentation" + }, + { + "type":"build", + "scope":"deps", + "section":"Build System" + }, + { + "type":"docs", + "section":"Documentation", + "hidden":true + }, + { + "type":"style", + "section":"Styles", + "hidden":true + }, + { + "type":"chore", + "section":"Miscellaneous Chores", + "hidden":true + }, + { + "type":"refactor", + "section":"Code Refactoring", + "hidden":true + }, + { + "type":"test", + "section":"Tests", + "hidden":true + }, + { + "type":"build", + "section":"Build System", + "hidden":true + }, + { + "type":"ci", + "section":"Continuous Integration", + "hidden":true + } + ] + } + } + ], + "@semantic-release/changelog", + [ + "@semantic-release/npm", + { + "npmPublish":false + } + ], + [ + "@semantic-release/exec", + { + "prepareCmd":"yarn build --type all" + } + ], + [ + "@semantic-release/git", + { + "assets":[ + "CHANGELOG.md", + "package.json" + ] + } + ], + [ + "@semantic-release/github", + { + "assets":[ + { + "path":"dist/terraform/json/fingerprint.json", + "label":"fingerprint-property-rules-for-terraform.json" + }, + { + "path":"dist/terraform/json/variables.json", + "label":"fingerprint-property-variables-for-terraform.json" + } + ] + } + ] + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 11335ff..a1d876c 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,9 @@ } }, "scripts": { + "test": "echo \"there are no tests planned\"", + "test:dts": "echo \"there are no typechecks planned\"", + "lint": "echo \"linter is not implemented yet\"", "build": "ts-node build.ts", "test:e2e": "npx playwright test --workers=8 --max-failures=1", "prepare": "husky install"