Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Commit 77d12c4

Browse files
committed
Publish to npm before packaging for github
1 parent 50320e7 commit 77d12c4

File tree

2 files changed

+10
-22
lines changed

2 files changed

+10
-22
lines changed

.circleci/config.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ jobs:
2828
- run:
2929
name: Install dependencies
3030
command: npm install
31+
- run:
32+
name: Authenticate with registry
33+
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/cli/.npmrc
34+
- run:
35+
name: Publish package
36+
command: npm publish
37+
- run:
38+
name: Remove .npmrc
39+
command: rm .npmrc
3140
- run: npm run prepack
3241
- run: npx @oclif/dev-cli pack -t linux-x64
3342
- run: npx @oclif/dev-cli pack:deb
@@ -59,19 +68,6 @@ jobs:
5968
- run: ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace ${CIRCLE_TAG} ./dist/deb/
6069
- run: ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace ${CIRCLE_TAG} ./dist/s3audit*
6170

62-
publish-to-npm:
63-
docker:
64-
- image: node:10.15.3
65-
steps:
66-
- attach_workspace:
67-
at: ~/cli
68-
- run:
69-
name: Authenticate with registry
70-
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/cli/.npmrc
71-
- run:
72-
name: Publish package
73-
command: npm publish ~/cli
74-
7571
workflows:
7672
version: 2
7773
"test":
@@ -101,11 +97,3 @@ workflows:
10197
only: /^v.*/
10298
branches:
10399
ignore: /.*/
104-
- publish-to-npm:
105-
requires:
106-
- pack
107-
filters:
108-
tags:
109-
only: /^v.*/
110-
branches:
111-
ignore: /.*/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "s3audit",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"author": "Rob Taylor @robbytaylor",
55
"bin": {
66
"s3audit": "./bin/run"

0 commit comments

Comments
 (0)