diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index 8e04669..4ad91a8 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -13,12 +13,20 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - uses: jaywcjlove/github-action-package@main + - name: PKG Info + id: pkg + uses: jaywcjlove/github-action-package@main with: unset: scripts.prepare - name: Publish to Registry + id: publish uses: JS-DevTools/npm-publish@v3 with: token: ${{ secrets.NPM_TOKEN }} + tag: ${{ steps.pkg.outputs.version }} + + - name: Release Status + if: ${{ steps.publish.outputs.type }} + run: echo "Published v${{ steps.pkg.outputs.version }}" \ No newline at end of file diff --git a/package.json b/package.json index 7b2c5cc..fddd638 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chalu/n-tuple-array", - "version": "0.0.1", + "version": "0.0.2", "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", @@ -67,6 +67,6 @@ }, "repository": { "type": "git", - "url": "https://github.com/chalu/n-tuple-array.git" + "url": "git+https://github.com/chalu/n-tuple-array.git" } }