Skip to content

Commit

Permalink
chore: update CI and sem-rel
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Jun 4, 2022
1 parent 40b8216 commit b5a4c3f
Show file tree
Hide file tree
Showing 9 changed files with 2,367 additions and 93 deletions.
2 changes: 2 additions & 0 deletions .depcheckrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ignores:
- "@commitlint/*"
- '@semantic-release/*'
- "@size-limit/*"
- "@types/jest"
- semantic-release
- typedoc*
4 changes: 2 additions & 2 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ pull_request_rules:
actions:
merge:
method: squash
- name: automatic merge for Renovate pull requests
- name: automatic merge for Renovate pull requests (except major)
conditions:
- author=renovate[bot]
- head~=^(?!major-)
- head~=^chore
actions:
merge:
method: squash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '40 14 * * 1'
- cron: '45 19 * * 2'

jobs:
analyze:
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/nodejs.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: pull-request
on:
pull_request:
types: [opened, synchronize]

jobs:
code:
uses: unional/.github/.github/workflows/yarn-verify-linux.yml@main
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: release
on:
push:
branches: [main]

jobs:
code:
uses: unional/.github/.github/workflows/yarn-verify-linux.yml@main

release:
uses: unional/.github/.github/workflows/yarn-release-semantic.yml@main
needs: code
secrets: inherit
20 changes: 20 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,25 @@
"main",
"next",
"beta"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/npm",
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
]
}
]
]
}
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
"@babel/preset-typescript": "7.17.12",
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.4",
"@semantic-release/npm": "^9.0.1",
"@size-limit/preset-small-lib": "^7.0.8",
"@types/jest": "28.1.0",
"@typescript-eslint/eslint-plugin": "^5.27.0",
Expand All @@ -63,16 +67,17 @@
"npm-run-all": "^4.1.5",
"pinst": "^3.0.0",
"rimraf": "^3.0.2",
"semantic-release": "^19.0.2",
"size-limit": "^7.0.8",
"type-plus": "4.9.1",
"typedoc": "^0.22.17",
"typedoc-plugin-extras": "^2.2.3",
"typescript": "4.7.3"
},
"packageManager": "[email protected]",
"size-limit": [
{
"limit": "10 kb"
}
],
"packageManager": "[email protected]"
]
}
Loading

0 comments on commit b5a4c3f

Please sign in to comment.