Skip to content

Commit 9856cf5

Browse files
committed
fix(ci): move to semantic release, update dependencies
1 parent 8d1ed25 commit 9856cf5

File tree

5 files changed

+755
-43
lines changed

5 files changed

+755
-43
lines changed

.github/workflows/npmpublish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ jobs:
3232
node-version: 18
3333
registry-url: https://registry.npmjs.org/
3434
- run: yarn install --immutable
35-
env:
36-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3735
- run: yarn build
38-
- run: npm publish --access public
36+
- name: Release
3937
env:
40-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
run: |
41+
yarn dlx semantic-release
4142

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ tsconfig.build.json
6363
jest.config.js
6464
.prettierrc.js
6565
.eslintrc.js
66+
.commitlintrc.json

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ${1}

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,20 @@
3939
"lint-staged": {
4040
"*.{js,jsx,ts,tsx}": "yarn eslint --cache --fix"
4141
},
42+
"release": {
43+
"branches": [
44+
"main"
45+
]
46+
},
4247
"devDependencies": {
43-
"@openapi-typescript-infra/coconfig": "^1.0.0",
44-
"@openapi-typescript-infra/service": "^1.0.0",
45-
"@types/lodash": "^4.14.194",
48+
"@commitlint/cli": "^17.6.3",
49+
"@commitlint/config-conventional": "^17.6.3",
50+
"@openapi-typescript-infra/coconfig": "^3.0.2",
51+
"@openapi-typescript-infra/service": "^1.0.4",
52+
"@types/lodash": "^4.14.195",
4653
"@typescript-eslint/eslint-plugin": "^5.59.7",
4754
"@typescript-eslint/parser": "^5.59.7",
48-
"coconfig": "^0.10.1",
55+
"coconfig": "^0.12.0",
4956
"eslint-config-prettier": "^8.8.0",
5057
"eslint-plugin-import": "^2.27.5",
5158
"eslint-plugin-jest": "^27.2.1",

0 commit comments

Comments
 (0)