Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
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
11 changes: 4 additions & 7 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ name: Release

on:
pull_request:
branches:
- "dev"
types: [ closed ]

jobs:
release:
if: github.event.pull_request.base.ref == 'dev' && github.event.pull_request.merged == true
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
Expand All @@ -24,9 +26,4 @@ jobs:
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 }}"


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chalu/n-tuple-array",
"version": "0.0.2",
"version": "0.1.4",
"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",
Expand Down