Skip to content

chore: add circleci config to publish to npm #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2.1

executors:
node-docker-executor:
docker:
- image: cimg/node:18.20.4-browsers
working_directory: ~/project

jobs:
# Job to publish to npm
npm-publish:
executor: node-docker-executor
steps:
- checkout
- run:
name: Install dependencies
command: yarn install
- run:
name: Set Up npm Credentials
command: |
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
- run:
name: Publish to npm
command: |
npm publish

workflows:
version: 2
publish:
jobs:
- npm-publish
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# IDE
.vscode
.idea

# Lib
/dist
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# @modusbox/redux-utils
# @pm4ml/redux-utils

A collection of Typescript utilities for the frontend apps.

To install the module run `yarn add @modusbox/redux-utils`.
To install the module run `yarn add @pm4ml/redux-utils`.

Documentation is available at [https://modusintegration.github.io/redux-utils](https://modusintegration.github.io/redux-utils)
Documentation is available at [https://github.com/pm4ml/redux-utils](https://github.com/pm4ml/redux-utils)

### Development

Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"name": "@modusbox/redux-utils",
"version": "0.0.11",
"name": "@pm4ml/redux-utils",
"version": "0.0.13",
"main": "lib/index.js",
"license": "MIT",
"license": "Apache-2.0",
"author": "Ivan Annovazzi <ivan@modusbox.com>",
"types": "lib/index.d.ts",
"files": [
"lib/**/*"
],
"publishConfig": {
"access": "public"
},
"dependencies": {
"@modusbox/ts-utils": "^0.0.3",
"@pm4ml/ts-utils": "^0.0.6",
"axios": "^0.21.1",
"lodash": "^4.17.21",
"object-hash": "^2.1.1",
Expand Down
4 changes: 2 additions & 2 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# @modusbox/redux-utils
# @pm4ml/redux-utils

A collection of Typescript utilities for the frontend apps.

### Installation

To install the module simply run `yarn add @modusbox/redux-utils`.
To install the module simply run `yarn add @pm4ml/redux-utils`.

### Usage

Expand Down
2 changes: 1 addition & 1 deletion src/api/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sleep from '@modusbox/ts-utils/lib/async/sleep';
import sleep from '@pm4ml/ts-utils/lib/async/sleep';
import {
Method,
MockCall,
Expand Down
16 changes: 7 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1161,13 +1161,6 @@
"@types/yargs" "^15.0.0"
chalk "^4.0.0"

"@modusbox/ts-utils@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@modusbox/ts-utils/-/ts-utils-0.0.3.tgz#8dd31001a3cb5eed08ff1cc42b37cc5796675b25"
integrity sha512-VcxVMMMmTpccy59uMw3GCf/vLeohRbm7cswoSu4WwksEDmjt+nNu1mf1mHDzf1HrSXTQnN/dLRh/r7ZlOkNTXw==
dependencies:
lodash "^4.17.21"

"@nodelib/fs.scandir@2.1.4":
version "2.1.4"
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz#d4b3549a5db5de2683e0c1071ab4f140904bbf69"
Expand All @@ -1189,6 +1182,13 @@
"@nodelib/fs.scandir" "2.1.4"
fastq "^1.6.0"

"@pm4ml/ts-utils@^0.0.6":
version "0.0.6"
resolved "https://registry.yarnpkg.com/@pm4ml/ts-utils/-/ts-utils-0.0.6.tgz#3727b2d6ccc5f665aa5b2a62e6f78bbef014de59"
integrity sha512-LmvaiY5xnmPzh/qTPFpSvINaSKBUBOa2smI0WJ8Z3ig9Z2gldPLO0SKaj6jAFjs5PM1sdk+AwZ6lOnq5gzv7HA==
dependencies:
lodash "^4.17.21"

"@redux-saga/core@^1.1.3":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@redux-saga/core/-/core-1.1.3.tgz#3085097b57a4ea8db5528d58673f20ce0950f6a4"
Expand Down Expand Up @@ -3228,8 +3228,6 @@ getpass@^0.1.1:
version "0.1.7"
resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa"
integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=
dependencies:
assert-plus "^1.0.0"

glob-parent@^5.0.0, glob-parent@^5.1.0:
version "5.1.2"
Expand Down