Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 671c873

Browse files
Added automatic publishing to npm using CircleCI
1 parent 563b1bd commit 671c873

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

‎.circleci/config.yml‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ jobs:
6565
- run:
6666
name: Deploy docs to gh-pages branch
6767
command: npx gh-pages --dotfiles --message "[skip ci] Automatic docs update after commit $(echo $CIRCLE_SHA1 | cut -c -7)" --dist docs
68+
publish:
69+
docker:
70+
- image: circleci/node:12
71+
steps:
72+
- checkout
73+
- run:
74+
name: Publish to npm
75+
command: |
76+
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
77+
npm publish
6878
workflows:
6979
version: 2
7080
build:
@@ -77,4 +87,10 @@ workflows:
7787
- build-docs
7888
filters:
7989
branches:
80-
only: master
90+
only: master
91+
tagged_build:
92+
jobs:
93+
- publish:
94+
filters:
95+
tags:
96+
only: /v[0-9]+(\.[0-9]+)*/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /