-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
5,667 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
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,12 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: weekly |
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 @@ | ||
titleOnly: true |
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,36 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
name: Run semantic release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.BOT_GITHUB_TOKEN_PUBLIC }} | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile --non-interactive --prefer-offline | ||
|
||
- name: Run semantic release | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN_PUBLIC }} | ||
GIT_AUTHOR_NAME: ${{ secrets.BOT_NAME }} | ||
GIT_AUTHOR_EMAIL: ${{ secrets.BOT_EMAIL }} | ||
GIT_COMMITTER_NAME: ${{ secrets.BOT_NAME }} | ||
GIT_COMMITTER_EMAIL: ${{ secrets.BOT_EMAIL }} | ||
run: yarn 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Tests | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
lint: | ||
name: Run linters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile --non-interactive --prefer-offline | ||
|
||
- name: Run linter | ||
run: yarn xo |
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,2 @@ | ||
# Package directories | ||
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = { | ||
plugins: [ | ||
'@semantic-release/commit-analyzer', | ||
|
||
'@semantic-release/release-notes-generator', | ||
|
||
'@semantic-release/github', | ||
|
||
'@semantic-release/npm', | ||
|
||
[ | ||
'@semantic-release/git', | ||
{ | ||
// eslint-disable-next-line no-template-curly-in-string | ||
message: 'chore(release): ${nextRelease.gitTag}', | ||
}, | ||
], | ||
], | ||
} |
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,36 @@ | ||
{ | ||
"name": "@bizon/semantic-release-config", | ||
"version": "1.0.0-rc.1", | ||
"description": "Semantic Release configuration for Bizon repositories", | ||
"repository": "https://github.com/bizon/semantic-release", | ||
"author": "Bertrand Marron <[email protected]>", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js" | ||
], | ||
"license": "MIT", | ||
"engines": { | ||
"node": "14.x" | ||
}, | ||
"scripts": { | ||
"build": "tsc", | ||
"watch": "tsc -w" | ||
}, | ||
"dependencies": { | ||
"@semantic-release/git": "^9.0.0" | ||
}, | ||
"devDependencies": { | ||
"semantic-release": "^17.4.6", | ||
"xo": "^0.44.0" | ||
}, | ||
"xo": { | ||
"semicolon": false, | ||
"space": 2, | ||
"rules": { | ||
"unicorn/prefer-module": "off" | ||
} | ||
}, | ||
"release": { | ||
"extends": "./index.js" | ||
} | ||
} |
Oops, something went wrong.