From f8f4e30b60e472aed83b1a7c44f772c6ada96405 Mon Sep 17 00:00:00 2001
From: Charles Opute Odili <chaluwa@gmail.com>
Date: Sun, 18 Feb 2024 08:38:43 -0700
Subject: [PATCH 1/2] dry run package publishing (#12)

---
 .github/workflows/CD.yaml | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml
index 87083f6..324e1ff 100644
--- a/.github/workflows/CD.yaml
+++ b/.github/workflows/CD.yaml
@@ -12,13 +12,9 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v4
 
-      - name: Print ENV
-        run: |
-            echo ${ github.event.pull_request.base.ref }
-            echo ${ github.event.pull_request }
-
-    #   - name: Publish to Registry
-    #     uses: JS-DevTools/npm-publish@v3
-    #     with:
-    #       token: ${{ secrets.NPM_TOKEN }}
+      - name: Publish to Registry
+        uses: JS-DevTools/npm-publish@v3
+        with:
+          token: ${{ secrets.NPM_TOKEN }}
+          dry-run: true
         
\ No newline at end of file

From 875ad623138af1775d9a66d7f2b4f28ca072874b Mon Sep 17 00:00:00 2001
From: Charles Opute Odili <chaluwa@gmail.com>
Date: Sun, 18 Feb 2024 14:06:46 -0700
Subject: [PATCH 2/2] Go public (#19)

---
 .github/workflows/CD.yaml |  2 +-
 README.md                 | 25 ++++++++++++++++---------
 package.json              |  2 +-
 3 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml
index 884c28e..35588d9 100644
--- a/.github/workflows/CD.yaml
+++ b/.github/workflows/CD.yaml
@@ -3,7 +3,7 @@ name: Release
 on:
   pull_request:
     branches: 
-        - "dev"
+        - "main"
     types: [ closed ]
 
 jobs:
diff --git a/README.md b/README.md
index 9fcee3b..f385ae2 100644
--- a/README.md
+++ b/README.md
@@ -29,26 +29,33 @@ const coordPairs = Array.from(coordIterable);
 console.log(Array.isArray(coordPairs));   // true
 // prints ["5.7225", "-9.6273"] ...
 coordPairs
-    .map(pair => myTransform(pair))
-	.forEach((pair) => placeOnMap(pair));
+    .map(pair => {
+        return myTransform(pair);
+    })
+	.forEach((pair) => {
+        placeOnMap(pair);
+    });
 ```
 
 ### Some Real World Examples
-> I first had this idea and tried my hands on it when [building wole-joko](https://github.com/chalu/wole-joko/blob/dev/src/js/utils.js#L57-L92), a live coding task I was asked to do in an engineering manager interview. It was a simulation of people entering an event hall to get seated, but only two could get it/be attended to at a time. I later took some time to [bring the project to live](https://wole-joko.netlify.app/)
 
-> The below example was adapted for more concise terminal output
+#### Wole Joko
 
-<br>
+I first tried my hands on this concept when [building wole-joko](https://github.com/chalu/wole-joko/blob/dev/src/js/utils.js#L57-L92), a _live coding task_ I was asked to do in an engineering manager interview :man_shrugging. It was a simulation of people entering an event hall to get seated, but only two could get in at a time. I later took some time to [give the project more life](https://wole-joko.netlify.app/)
 
-JS challenge by @thdxr on X.com <br>
+#### Execute max of X tasks in parallel
+
+JS challenge by [@thdxr on X.com](https://twitter.com/thdxr) <br>
 ![](./assets/the-dax-js-challenge.png "JS challenge by @thdxr")
 <br> <br>
 
-`n-tuple-array` solution code <br>
-[<img src="./assets/demo-classic.png">](https://github.com/chalu/n-tuple-array/blob/main/src/demo/demo-classic.ts#L6-L40)
+> The below was adapted for more concise terminal output
+
+`n-tuple-array` solution. View [code here](https://github.com/chalu/n-tuple-array/blob/main/src/demo/demo-classic.ts#L6-L40)  <br>
+![](./assets/demo-classic.png "n-tuple-array solution")
 <br> <br>
 
-`n-tuple-array` n-tuple-array solution demo <br>
+`n-tuple-array` solution demo <br>
 ![](./assets/ntuple-array-demo-optimized.gif "n-tuple-array solution demo")
 
  
diff --git a/package.json b/package.json
index c30e1b0..882e94a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@chalu/n-tuple-array",
-  "version": "0.1.4",
+  "version": "0.1.5",
   "description": "Get a specified amount of items when iterating over a JavaScript array, instead of just a single item that arrays provide!",
   "main": "./dist/cjs/index.js",
   "types": "./dist/cjs/types/index.d.ts",