Skip to content

Commit 0082a1b

Browse files
authored
ci: switch from yarn to npm (#45)
* ci: switch from yarn to npm old yarn install isn't working for me - it's easier to just switch to npm, which we're used to * chore: linter autofixes
1 parent 8b69709 commit 0082a1b

File tree

8 files changed

+36303
-10504
lines changed

8 files changed

+36303
-10504
lines changed

.github/workflows/ci.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,24 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 16
17+
cache: 'npm'
1418
- uses: cypress-io/github-action@224f894ce0b082eba28a3a4562f630c54a17b432
1519
with:
16-
start: yarn serve
20+
start: npm run serve
1721
wait-on: 'http://localhost:8080'
1822

1923
deploy:
2024
needs: cypress
2125
runs-on: ubuntu-latest
2226
steps:
2327
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
28+
- uses: actions/setup-node@v3
29+
with:
30+
node-version: 16
31+
cache: 'npm'
2432
- name: set deployment parameters
2533
run: |
2634
if ${{ github.ref == 'refs/heads/main' }}
@@ -43,7 +51,7 @@ jobs:
4351
fi
4452
- uses: actions/setup-node@fd4bd829f2dd6b6c1420bd94a93449c54612ffc2
4553
if: env.DESTINATION_DIR
46-
- run: yarn install && yarn build
54+
- run: npm install && npm run build
4755
if: env.DESTINATION_DIR
4856
- name: deploy
4957
if: env.DESTINATION_DIR

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
## Project setup
44
```
5-
yarn install
5+
npm install
66
```
77

88
### Compiles and hot-reloads for development
99
```
10-
yarn serve
10+
npm run serve
1111
```
1212

1313
### Compiles and minifies for production
1414
```
15-
yarn build
15+
npm run build
1616
```
1717

1818
### Lints and fixes files
1919
```
20-
yarn lint
20+
npm run lint
2121
```
2222

2323
### Customize configuration

cypress.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2-
"baseUrl": "http://localhost:8080"
2+
"baseUrl": "http://localhost:8080",
3+
"defaultCommandTimeout": 10000
34
}
45

0 commit comments

Comments
 (0)