Skip to content

Commit 4bc0c8e

Browse files
committed
v0.2.1, try releasing from circleci
1 parent a25abcf commit 4bc0c8e

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed

.circleci/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

.circleci/config.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
defaults: &defaults
2+
docker:
3+
- image: circleci/node:latest
4+
15
version: 2.1
26
jobs:
3-
build:
4-
docker:
5-
- image: circleci/node:latest
7+
build-docs:
8+
<<: *defaults
69

710
steps:
811
- checkout
@@ -38,12 +41,34 @@ jobs:
3841
# https://stackoverflow.com/a/48763205
3942
git push -q -f https://${GH_PAGES_TOKEN}@github.com/hunchcloud/elements.git netlify
4043
44+
release:
45+
<<: *defaults
46+
47+
steps:
48+
- checkout
49+
50+
- restore_cache:
51+
keys:
52+
- deps-{{ checksum "package.json" }}
53+
54+
- run:
55+
command: |
56+
mv .circleci/.npmrc .
57+
npm run release
58+
4159
workflows:
42-
build-gh-pages:
60+
main:
4361
jobs:
44-
- build:
62+
- build-docs:
4563
context: gh-pages
4664
filters:
4765
branches:
4866
only:
4967
- master
68+
- release:
69+
context: npm-release
70+
filters:
71+
branches:
72+
ignore: /.*/
73+
tags:
74+
only: /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hunchcloud/elements",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "A collection of custom elements",
55
"main": "dist/index.js",
66
"files": [
@@ -26,7 +26,7 @@
2626
"docs:build": "node scripts/build-docs.js",
2727
"docs:dist": "parcel build www/index.html",
2828
"docs:serve": "parcel www/index.html",
29-
"release": "rm -r dist && yarn build && npm publish --access public",
29+
"release": "rm -rf dist && npm run build && npm publish --access public",
3030
"start": "tsc -w"
3131
},
3232
"devDependencies": {

0 commit comments

Comments
 (0)