Skip to content

Commit 16109c9

Browse files
authored
chore: circleci release (#7)
1 parent 0f07c32 commit 16109c9

2 files changed

Lines changed: 20 additions & 9 deletions

File tree

.circleci/config.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,18 @@ jobs:
112112
release:
113113
<<: *defaults
114114
docker:
115-
- image: cimg/node:<< parameters.node_version >>
115+
- image: node:18
116116
steps:
117117
- checkout
118+
- install_node_npm:
119+
node_version: << parameters.node_version >>
118120
- install_deps
119-
- run: sudo npm i -g semantic-release@17 @semantic-release/exec pkg
121+
- run:
122+
name: Run build
123+
command: npm run build
120124
- run:
121125
name: Publish to GitHub
122-
command: npx semantic-release
126+
command: npx semantic-release@21
123127

124128
workflows:
125129
version: 2
@@ -160,8 +164,11 @@ workflows:
160164
<<: *filters_branches_ignore_main
161165
- release:
162166
name: Release
163-
context: nodejs-app-release
164-
node_version: "18.19.1"
167+
context: nodejs-lib-release
168+
requires:
169+
- Scan repository for secrets
170+
- Perform security scans for PRs
171+
- Lint
165172
filters:
166173
branches:
167174
only:

.releaserc.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"branches": [
3-
"main"
4-
]
5-
}
2+
"branches": "main",
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/github",
6+
"@semantic-release/npm",
7+
"@semantic-release/release-notes-generator"
8+
]
9+
}

0 commit comments

Comments
 (0)