Skip to content

Commit

Permalink
Merge pull request #2 from fingerprintjs/feature/semantic-release-int…
Browse files Browse the repository at this point in the history
…er-340

feat(semantic-release): add semantic-release
  • Loading branch information
Orkuncakilkaya committed Oct 20, 2023
2 parents 75c0159 + ab59292 commit 5f1a0a3
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
136 changes: 136 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
]
]
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5f1a0a3

Please sign in to comment.