Skip to content

Commit 212bde7

Browse files
committed
🔧 ci: update action steps
1 parent 7c44ab6 commit 212bde7

File tree

5 files changed

+18
-98
lines changed

5 files changed

+18
-98
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: CI
33
on:
44
pull_request:
55
branches: [main]
6+
push:
7+
branches: [main]
68

79
jobs:
810
build:
@@ -24,3 +26,16 @@ jobs:
2426

2527
- name: 🧪 Tests
2628
run: npm run test
29+
30+
- name: 🚀 Release
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
run: npm run semantic-release
35+
36+
- name: 📜 Generate Gitmoji Changelog
37+
run: npx gitmoji-changelog
38+
39+
- uses: stefanzweifel/git-auto-commit-action@v4
40+
with:
41+
commit_message: ':pencil: docs: update changelog [skip ci]'

.github/workflows/publish.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.releaserc.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
const path = require('path');
2-
const fs = require('fs');
3-
const dateFormat = require('dateformat');
4-
5-
const template = path.resolve(__dirname, 'release-notes.hbs');
6-
const commitTemplate = path.resolve(__dirname, 'commit-template.hbs');
7-
81
module.exports = {
92
branches: ['main'],
103
plugins: [
@@ -14,7 +7,7 @@ module.exports = {
147
releaseRules: {
158
major: [':boom:'],
169
minor: [':sparkles:'],
17-
patch: [':bug:', ':package:', 'construction']
10+
patch: [':bug:', ':package:']
1811
}
1912
}
2013
],

package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"build": "npm run clean-build && npm run compile && npm run copy-templates",
2121
"prepublishOnly": "npm run build",
2222
"format": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix && prettier \"**/*.{js,jsx,ts,tsx,json}\" --write",
23-
"test": "jest",
23+
"test": "jest --verbose",
2424
"test-watch": "jest --watchAll",
2525
"watch": "jest --watch",
2626
"snapupdate": "jest --updateSnapshot",
2727
"coverage": "jest --coverage",
2828
"commit": "git-cz",
29-
"semantic-release": "semantic-release",
29+
"release": "semantic-release",
3030
"changelog": "gitmoji-changelog",
3131
"prepare": "husky install"
3232
},
@@ -69,13 +69,6 @@
6969
"ts-node": "^9.1.1",
7070
"typescript": "^4.2.3"
7171
},
72-
"jest": {
73-
"preset": "ts-jest",
74-
"testEnvironment": "node",
75-
"testPathIgnorePatterns": [
76-
"src"
77-
]
78-
},
7972
"config": {
8073
"commitizen": {
8174
"path": "git-cz"

release-notes.hbs

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)