Skip to content

Commit 83b7a80

Browse files
committed
📦 Moving publish to npm
Adds npm token to npm_auth in build and removes github registry Removes custom .npmrc, should not be required now Adds github token to publish for storybook updates package.json version and publishConfig
1 parent b3b6d43 commit 83b7a80

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.drone.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ steps:
77
- name: npm_auth
88
image: robertstettner/drone-npm-auth
99
settings:
10-
registry: npm.pkg.github.com
1110
token:
12-
from_secret: github_token
11+
from_secret: npm_token
1312

1413
- name: build
1514
image: node:latest
@@ -30,6 +29,9 @@ steps:
3029

3130
- name: publish
3231
image: node:latest
32+
environment:
33+
GH_TOKEN:
34+
from_secret: github_token
3335
commands:
3436
- yarn publish
3537
- yarn deploy-storybook --ci

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@commitd/components",
3-
"version": "0.0.22",
3+
"version": "0.0.23",
44
"description": "Committed Component Library",
55
"author": "Committed",
66
"license": "MIT",
@@ -10,9 +10,6 @@
1010
"types": "dist/index.d.ts",
1111
"module": "dist/index.es.js",
1212
"jsnext:main": "dist/index.es.js",
13-
"publishConfig": {
14-
"registry": "https://npm.pkg.github.com/"
15-
},
1613
"engines": {
1714
"node": ">=8",
1815
"npm": ">=5"

0 commit comments

Comments
 (0)