Skip to content

Commit

Permalink
Merge pull request #1 from abusix/pla-509-common-platform-repo-config
Browse files Browse the repository at this point in the history
Add npm semantic-release workflow
  • Loading branch information
Coderwelsch authored Aug 10, 2023
2 parents 65ac114 + 2ba1b95 commit 897ee7b
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 3,948 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Semantic Release CI

on:
push:
branches: [main]

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false # <--- this
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- run: npm ci
- run: npm run build
- run: npx semantic-release
20 changes: 20 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"branches": ["main"],
"debug": true,
"ci": true,
"dryRun": false,
"plugins":
[
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/npm", { "npmPublish": true, "tarballDir": "dist" }],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]",
},
],
],
}
66 changes: 64 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
Code conventions for Abusix repos and projects.


## Available Eslint Packages
## Available Config Packages

This repo includes the eslint packages:
**⚠️ Note: Please make sure to have the required peer dependencies installed in your project.**

This repo includes these eslint packages:

### eslint-config-base

Expand All @@ -25,4 +27,64 @@ Add the following to your `.eslintrc.js`:
module.exports = {
extends: ['@abusix/eslint-config-base'],
};
```

### eslint-config-react

This package contains the base eslint configuration for react + typescript projects.

#### Installation

```sh
npm add -D @abusix/eslint-config-react
```

#### Usage

Add the following to your `.eslintrc.js`:

```js
module.exports = {
extends: ['@abusix/eslint-config-react'],
};
```

### eslint-config-prettier

This package contains a prettier config used by eslint.

#### Installation

```sh
npm add -D @abusix/eslint-config-prettier
```

#### Usage

Add the following to your `.eslintrc.js`:

```js
module.exports = {
extends: ['@abusix/eslint-config-prettier'],
};
```

### eslint-config-storybook

This package contains the base eslint configuration for storybook + typescript projects.

#### Installation

```sh
npm add -D @abusix/eslint-config-storybook
```

#### Usage

Add the following to your `.eslintrc.js`:

```js
module.exports = {
extends: ['@abusix/eslint-config-storybook'],
};
```
Loading

0 comments on commit 897ee7b

Please sign in to comment.