forked from Maggi64/eslint-plus-action
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: semantic-release (bradennapier#22)
* feat: batched annotations * take first 50 annotations from file to respect [Github Check annotation limit](https://developer.github.com/v3/checks/runs/#output-object-1) * fix: handle batched annotations * feat: run batched annotations in parallel Co-authored-by: Braden Napier <brady.napier@dashos.net> * build: add semantic release action * build: various build and release changes Co-authored-by: Stephen Chung <spchung95@gmail.com>
- Loading branch information
1 parent
e1e4b7e
commit d69fe57
Showing
12 changed files
with
3,571 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ dist/ | |
lib/ | ||
node_modules/ | ||
!.prettierrc.js | ||
!.eslintrc.js | ||
!.eslintrc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- next | ||
- beta | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '12' | ||
check-latest: true | ||
- name: Install dependencies | ||
run: yarn | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npx semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
dist/ | ||
lib/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,4 @@ module.exports = { | |
useTabs: false, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
parser: 'typescript', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module.exports = { | ||
plugins: [ | ||
'@semantic-release/changelog', | ||
[ | ||
'@google/semantic-release-replace-plugin', | ||
{ | ||
replacements: [ | ||
{ | ||
files: ['README.md'], | ||
from: '@__VERSION__', | ||
// eslint-disable-next-line no-template-curly-in-string | ||
to: '@${nextRelease.gitTag}', | ||
results: [ | ||
{ | ||
file: 'README.md', | ||
hasChanged: true, | ||
// numMatches: 1, | ||
// numReplacements: 1, | ||
}, | ||
], | ||
countMatches: true, | ||
}, | ||
], | ||
}, | ||
], | ||
['@semantic-release/git', { assets: ['README.md'] }], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": [ | ||
".json", | ||
".eslintrc.js", | ||
".prettierrc.js", | ||
"release.config.js", | ||
".stylelintrc.js", | ||
"**/.eslintrc.js", | ||
"**/*", | ||
"tests/**/*.ts", | ||
"tests/quick.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.