Skip to content

Commit

Permalink
ci(release): automatic releases + PR naming convention check (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
bboure authored Jul 16, 2022
1 parent a2bb44a commit ffc87f1
Show file tree
Hide file tree
Showing 4 changed files with 4,094 additions and 1,605 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/naming.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Naming conventions

on:
pull_request:
types: [opened, edited, reopened]

permissions:
pull-requests: read

jobs:
naming:
name: Naming conventions
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-pr-title@master
with:
regex: '(feat|fix|ci|docs|test|refactor|build|chore|script)\(.+\): .+'
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
workflow_dispatch:

permissions:
contents: write
issues: write
pull-requests: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: yarn
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"eslint-plugin-prettier": "^4.0.0",
"jest": "^22.1.4",
"prettier": "^2.4.1",
"semantic-release": "^19.0.3",
"serverless": "^1.83.3"
},
"dependencies": {
Expand All @@ -35,7 +36,6 @@
"moment": "^2.29.1",
"ramda": "^0.25.0"
},
"peerDependencies": {},
"jest": {
"testEnvironment": "node"
}
Expand Down
Loading

0 comments on commit ffc87f1

Please sign in to comment.