File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
124128workflows :
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 :
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments