diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b02d1d..90caad9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: Release on: + workflow_dispatch: push: branches: - main @@ -12,10 +13,11 @@ jobs: name: Release Please runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3.1.2 + - uses: google-github-actions/release-please-action@v3 id: release with: release-type: node + default-branch: '${{ github.ref_name }}' package-name: ng-keyboard-sort path: libs/ng-keyboard-sort token: ${{ secrets.GH_TOKEN }} @@ -35,25 +37,25 @@ jobs: ] - name: Checkout uses: actions/checkout@v3 - if: steps.release.outputs.release_created + if: ${{ steps.release.outputs.release_created }} - name: Setup node uses: actions/setup-node@v3 with: node-version: ${{ env.node_version }} registry-url: 'https://registry.npmjs.org' - if: steps.release.outputs.release_created + if: ${{ steps.release.outputs.release_created }} - name: Cache node_modules id: cache-node-modules uses: actions/cache@v3 with: path: node_modules key: ${{ runner.os }}-node-${{ env.node_version }}-${{ hashFiles('**/package-lock.json') }} - if: steps.release.outputs.release_created + if: ${{ steps.release.outputs.release_created }} - name: Install run: npm ci - if: steps.release.outputs.release_created && steps.cache-node-modules.outputs.cache-hit != 'true' + if: ${{ steps.release.outputs.release_created && steps.cache-node-modules.outputs.cache-hit != 'true' }} - name: Publish to NPM - if: steps.release.outputs.release_created + if: ${{ steps.release.outputs.release_created }} env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} run: | diff --git a/README.md b/README.md index 10e1800..ed88c09 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # ng-keyboard-sort +[![CI](https://github.com/johnhwhite/ng-keyboard-sort/actions/workflows/ci.yml/badge.svg)](https://github.com/johnhwhite/ng-keyboard-sort/actions/workflows/ci.yml) +[![npm](https://img.shields.io/npm/v/ng-keyboard-sort/latest?label=ng-keyboard-sort)](https://www.npmjs.com/package/ng-keyboard-sort) +[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) + Library to add keyboard commands for elements that also use CDK drag and drop sorting. This library intends to provide parity for picking up an element with the keyboard, moving it up and down the list, and dropping it in place. ## Directives diff --git a/libs/ng-keyboard-sort/README.md b/libs/ng-keyboard-sort/README.md index 8015a60..baf6281 100644 --- a/libs/ng-keyboard-sort/README.md +++ b/libs/ng-keyboard-sort/README.md @@ -1,5 +1,7 @@ # ng-keyboard-sort +[![CI](https://github.com/johnhwhite/ng-keyboard-sort/actions/workflows/ci.yml/badge.svg)](https://github.com/johnhwhite/ng-keyboard-sort/actions/workflows/ci.yml) +[![npm](https://img.shields.io/npm/v/ng-keyboard-sort/latest?label=ng-keyboard-sort)](https://www.npmjs.com/package/ng-keyboard-sort) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) Library to add keyboard commands for elements that also use CDK drag and drop sorting. This library intends to provide parity for picking up an element with the keyboard, moving it up and down the list, and dropping it in place. diff --git a/libs/ng-keyboard-sort/package.json b/libs/ng-keyboard-sort/package.json index 91409b0..f062c14 100644 --- a/libs/ng-keyboard-sort/package.json +++ b/libs/ng-keyboard-sort/package.json @@ -1,6 +1,12 @@ { "name": "ng-keyboard-sort", "version": "1.0.1", + "repository": { + "type": "git", + "url": "https://github.com/johnhwhite/ng-keyboard-sort.git", + "directory": "projects/ng-keyboard-sort", + "branch": "main" + }, "peerDependencies": { "@angular/cdk": "^15.0.0", "@angular/common": "^15.0.0", @@ -9,5 +15,10 @@ "dependencies": { "tslib": "^2.3.0" }, + "keywords": [ + "angular", + "keyboard", + "sort" + ], "sideEffects": false }