Skip to content

Commit 4fdcce5

Browse files
Remove NPM and only use YARN (#7)
* remove npm; use yarn * fix precommit hook and add lint-staged as a dev dep * fix precommit hook and add lint-staged as a dev dep * use node:18 as github runner * remove docs and api builder * temporarily cast expected assignments to string
1 parent 8e80d1d commit 4fdcce5

31 files changed

+21
-14643
lines changed

.github/workflows/lint-test-sdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Use Node.js
1313
uses: actions/setup-node@v1
1414
with:
15-
node-version: '14.x'
15+
node-version: '18.x'
1616
- uses: actions/cache@v2
1717
with:
1818
path: './node_modules'
@@ -35,7 +35,7 @@ jobs:
3535
- name: Use Node.js
3636
uses: actions/setup-node@v1
3737
with:
38-
node-version: '14.x'
38+
node-version: '18.x'
3939
- uses: actions/cache@v2
4040
with:
4141
path: './node_modules'

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
- uses: actions/setup-node@v3
1212
with:
1313
node-version: 12
14-
- run: npm install
15-
- run: npm test
14+
- run: yarn install
15+
- run: yarn test
1616
- uses: JS-DevTools/npm-publish@v1
1717
with:
1818
token: ${{ secrets.NPM_TOKEN }}

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ testDataDir := test/data/
2929
test-data:
3030
rm -rf $(testDataDir)
3131
mkdir -p $(testDataDir)
32-
gsutil cp gs://sdk-test-data/rac-experiments-v2.json $(testDataDir)
32+
gsutil cp gs://sdk-test-data/rac-experiments-v3.json $(testDataDir)
3333
gsutil cp -r gs://sdk-test-data/assignment-v2 $(testDataDir)
3434

3535
## prepare
3636
.PHONY: prepare
3737
prepare: test-data
38-
husky install
3938
rm -rf dist/
4039
tsc
4140
webpack
42-
api-extractor run --local

0 commit comments

Comments
 (0)