Skip to content

Commit

Permalink
feat: initial release (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
tusbar authored Aug 24, 2021
1 parent 9673435 commit c98cfc0
Show file tree
Hide file tree
Showing 9 changed files with 5,667 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
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
12 changes: 12 additions & 0 deletions .github/dependabot.yml
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
1 change: 1 addition & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
titleOnly: true
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
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
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Package directories
node_modules/
19 changes: 19 additions & 0 deletions index.js
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}',
},
],
],
}
36 changes: 36 additions & 0 deletions package.json
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"
}
}
Loading

0 comments on commit c98cfc0

Please sign in to comment.