Skip to content

Commit

Permalink
chore: switch to npm and node v16 (#10)
Browse files Browse the repository at this point in the history
* chore: switch to npm and node v16

* chore: add changeset

* chore: drop yarn.lock

* chore: drop swc dependency; use tsc for esm and cjs builds
  • Loading branch information
jmike authored Apr 20, 2023
1 parent 371eb92 commit 8c9b691
Show file tree
Hide file tree
Showing 8 changed files with 17,983 additions and 5,370 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-pants-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'array-fp-utils': patch
---

When a NonEmptyArray is being passed to unique() the output will always be a NonEmptyArray.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,56 +24,56 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- uses: actions/cache@v2
id: yarn-cache
id: npm-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}

- uses: actions/cache@v2
with:
path: '**/build'
key: ${{ runner.os }}-build-${{ github.sha }}

- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn --ignore-scripts --frozen-lockfile
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts

- name: Build artifacts
run: yarn build
run: npm run build

test_unit:
name: test:unit
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- uses: actions/cache@v2
id: yarn-cache
id: npm-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}

- uses: actions/cache@v2
with:
path: '**/build'
key: ${{ runner.os }}-build-${{ github.sha }}

- name: Run tests
run: yarn test
run: npm run test
Loading

0 comments on commit 8c9b691

Please sign in to comment.