Skip to content

Commit 0f07c32

Browse files
authored
chore: add release step (#6)
1 parent dc1be93 commit 0f07c32

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,18 @@ jobs:
109109
name: Run tests
110110
command: npm test
111111

112+
release:
113+
<<: *defaults
114+
docker:
115+
- image: cimg/node:<< parameters.node_version >>
116+
steps:
117+
- checkout
118+
- install_deps
119+
- run: sudo npm i -g semantic-release@17 @semantic-release/exec pkg
120+
- run:
121+
name: Publish to GitHub
122+
command: npx semantic-release
123+
112124
workflows:
113125
version: 2
114126
test_and_release:
@@ -145,4 +157,12 @@ workflows:
145157
context: nodejs-install
146158
requires:
147159
- Lint
148-
<<: *filters_branches_ignore_main
160+
<<: *filters_branches_ignore_main
161+
- release:
162+
name: Release
163+
context: nodejs-app-release
164+
node_version: "18.19.1"
165+
filters:
166+
branches:
167+
only:
168+
- main

0 commit comments

Comments
 (0)