Skip to content

Commit

Permalink
build(npm): move from yarn to npm (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera authored Apr 21, 2024
1 parent b85ffcb commit bdb21de
Show file tree
Hide file tree
Showing 12 changed files with 12,789 additions and 6,679 deletions.
12 changes: 7 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
<!-- Are there directions to test/review? -->
<!--
### Coverage and basic unit test check
1. update the NPM packages with `$ yarn`
1. `$ yarn test`
1. update the NPM packages with `$ npm install`
1. `$ npm test`
-->

<!--
### Interactive unit test check
1. update the NPM packages with `$ yarn`
1. `$ yarn test:dev`
1. update the NPM packages with `$ npm install`
1. `$ npm run test:dev`
-->
...

## Example
<!-- Append a demo/screenshot/animated gif, or a link to the aforementioned, of the cli output -->
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache: npm
- name: Node.js modules cache
uses: actions/cache@v4
id: modules-cache
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-modules
- name: Install Node.js packages
if: ${{ steps.modules-cache.outputs.cache-hit != 'true' }}
run: yarn install
run: npm install
- name: Setup coverage report
run: yarn test:coverage
run: npm run test:coverage
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/documentation_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache: npm
- name: Node.js modules cache
uses: actions/cache@v4
id: modules-cache
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-modules
- name: Install Node.js packages
if: ${{ steps.modules-cache.outputs.cache-hit != 'true' }}
run: yarn install
run: npm install
- name: Build
run: yarn build:docs
run: npm run build:docs
- name: Git modified files
if: ${{ success() }}
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache: npm
- name: Node.js modules cache
uses: actions/cache@v4
id: modules-cache
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-modules
- name: Install Node.js packages
if: ${{ steps.modules-cache.outputs.cache-hit != 'true' }}
run: yarn install
run: npm install
- name: Lint and test
run: yarn test
run: npm test
- name: Confirm integration
if: ${{ success() }}
run: yarn test:integration
run: npm run test:integration
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# dependencies
node_modules
package-lock.json
.yarn-integrity

# coverage
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ Generate a changelog with [conventional commit types](https://www.conventionalco
## Requirements
The basic requirements:
* [NodeJS version 16+](https://nodejs.org/)
* Optionally your system could be running
- [Yarn](https://yarnpkg.com), otherwise NPM should be adequate.

* NPM

## Use

Expand All @@ -21,12 +19,6 @@ NPM install...
```shell
$ npm i changelog-light
```

or Yarn

```shell
$ yarn add changelog-light
```

#### CLI Usage
```
Expand Down
Loading

0 comments on commit bdb21de

Please sign in to comment.