Skip to content

Commit 71f306b

Browse files
authored
refactor: swap to npm (#50)
* refactor: swap to npm * fix: run build prior to publish
1 parent 3c505ed commit 71f306b

File tree

6 files changed

+15631
-9479
lines changed

6 files changed

+15631
-9479
lines changed

.github/workflows/publish.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ jobs:
1717
- name: Setup node
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: 14
21-
cache: 'yarn'
20+
node-version: 18
21+
cache: 'npm'
2222
registry-url: 'https://registry.npmjs.org'
2323

24-
- name: Yarn Install
25-
run: yarn install --network-concurrency 1
24+
- name: NPM Install
25+
run: npm ci
26+
27+
- name: NPM Build
28+
run: npm run build
2629

2730
- name: Publish (NPM)
2831
run: npm publish --provenance --access public

.github/workflows/testing.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ jobs:
99
- uses: actions/checkout@v3
1010
- uses: actions/setup-node@v3
1111
with:
12-
node-version: 16
13-
cache: 'yarn'
12+
node-version: 18
13+
cache: 'npm'
1414

15-
- name: Yarn Install
16-
run: yarn install
15+
- name: NPM Install
16+
run: npm ci
1717

1818
- name: Linting
19-
run: yarn lint
19+
run: npm run lint
2020

2121
- name: Typing
22-
run: yarn typescript
22+
run: npm run typescript
2323

2424
- name: Testing
25-
run: yarn test --coverage
25+
run: npm run test --coverage
2626

2727
- name: Prepare Build
28-
run: yarn prepare
28+
run: npm run build

.yarnrc

-3
This file was deleted.

0 commit comments

Comments
 (0)