Skip to content

Commit

Permalink
ci: release postject to npm on ci
Browse files Browse the repository at this point in the history
Fixes: #14
Signed-off-by: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
RaisinTen committed Sep 26, 2022
1 parent 1fa49dd commit 7ac857d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,19 @@ commands:
- store_test_results:
path: .

publish:
steps:
- run:
name: Login to npm
command: npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
- run:
name: Publish to npm
command: |
# Commenting this out for now because I want to wait for some
# reviews before running this because I'm pretty new to publishing
# stuff to npm.
# npm publish
## JOBS ##

jobs:
Expand Down Expand Up @@ -210,6 +223,12 @@ jobs:
os: << parameters.os >>
- test

publish:
executor: { name: linux }
steps:
- checkout
- publish

## WORKFLOWS ##

matrix: &matrix
Expand All @@ -229,4 +248,5 @@ workflows:
- test:
<<: *matrix
requires: [ build-<< matrix.os >> ]
- publish

0 comments on commit 7ac857d

Please sign in to comment.