Skip to content

Commit 78ab88b

Browse files
committed
feat(esm): bumped dependencies and added esm support
1 parent 7ee6482 commit 78ab88b

24 files changed

+8574
-20470
lines changed

.github/workflows/master.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,26 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v1
16-
- uses: actions/cache@v1
16+
- uses: actions/setup-node@v3
1717
with:
18-
path: ~/.npm
19-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
20-
restore-keys: |
21-
${{ runner.os }}-node-
18+
node-version: 16
19+
cache: 'npm'
2220
- name: Install dependencies
2321
run: npm ci
2422
- name: Test
25-
run: npm run test:prod
23+
run: npm run test
2624
- name: Build
2725
run: npm run build
2826
- name: Report coverage
29-
run: npm run report-coverage
27+
uses: codecov/codecov-action@v3
3028
- name: Publish docs
31-
run: npm run deploy-docs
29+
uses: crazy-max/ghaction-github-pages@v2
30+
with:
31+
build_dir: docs
3232
env:
33-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
34-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3534
- name: Publish package
36-
run: npm run semantic-release
35+
run: npx semantic-release
3736
env:
3837
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
3938
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/pr.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v1
16-
- uses: actions/cache@v1
16+
- uses: actions/setup-node@v3
1717
with:
18-
path: ~/.npm
19-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
20-
restore-keys: |
21-
${{ runner.os }}-node-
18+
node-version: 16
19+
cache: 'npm'
2220
- name: Install dependencies
2321
run: npm ci
2422
- name: Test
25-
run: npm run test:prod
23+
run: npm run test
2624
- name: Build
2725
run: npm run build
2826
- name: Report coverage
29-
run: npm run report-coverage
27+
uses: codecov/codecov-action@v3

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Yet-Another-Fetch-Mock
22

33
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
4-
[![Travis](https://img.shields.io/travis/nutgaard/yet-another-fetch-mock.svg)](https://travis-ci.org/nutgaard/yet-another-fetch-mock)
54
[![codecov](https://codecov.io/gh/nutgaard/yet-another-fetch-mock/branch/master/graph/badge.svg)](https://codecov.io/gh/nutgaard/yet-another-fetch-mock)
65
[![dependencies Status](https://david-dm.org/nutgaard/yet-another-fetch-mock/status.svg)](https://david-dm.org/nutgaard/yet-another-fetch-mock)
76

0 commit comments

Comments
 (0)