Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: migrate to using npm in ci

thecodrredcc2db6427f
diff --git a/apps/web/.github/workflows/deploy.yml b/apps/web/.github/workflows/deploy.yml
index 228c382b0..43dfdb13c 100644
--- a/apps/web/.github/workflows/deploy.yml
+++ b/apps/web/.github/workflows/deploy.yml
@@ -22,12 +22,12 @@ jobs:
with:
persist-credentials: false
- - name: Use Node.js 15.x
+ - name: Use Node.js 16.x
uses: actions/[email protected]
with:
- node-version: 15.x
- - run: yarn install
- - run: yarn build
+ node-version: 16.x
+ - run: npm ci
+ - run: npm run build
- uses: easingthemes/ssh-deploy@main
env:
diff --git a/apps/web/.github/workflows/e2e.yml b/apps/web/.github/workflows/e2e.yml
index 77afa9c1a..0bd85ed60 100644
--- a/apps/web/.github/workflows/e2e.yml
+++ b/apps/web/.github/workflows/e2e.yml
@@ -22,10 +22,10 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 16.x
- - run: yarn
- - run: yarn playwright install-deps
- - run: yarn playwright install
- - run: yarn test
+ - run: npm ci
+ - run: npm exec playwright install-deps
+ - run: npm exec playwright install
+ - run: npm exec test
env:
USER_EMAIL: ${{ secrets.USER_EMAIL }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}
diff --git a/apps/web/.github/workflows/eslint.yml b/apps/web/.github/workflows/eslint.yml
index 7dfc41e2c..ed2aa2a2e 100644
--- a/apps/web/.github/workflows/eslint.yml
+++ b/apps/web/.github/workflows/eslint.yml
@@ -24,7 +24,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- - run: npm install
+ - run: npm ci
- name: ESLint Action
uses: reviewdog/action-eslint@v1
with:
diff --git a/apps/web/.github/workflows/release.yml b/apps/web/.github/workflows/release.yml
index 11fac9810..4c373ec01 100644
--- a/apps/web/.github/workflows/release.yml
+++ b/apps/web/.github/workflows/release.yml
@@ -12,12 +12,12 @@ jobs:
with:
persist-credentials: false
- - name: Use Node.js 15.x
+ - name: Use Node.js 16.x
uses: actions/[email protected]
with:
- node-version: 15.x
- - run: yarn install
- - run: yarn build:desktop
+ node-version: 16.x
+ - run: npm ci
+ - run: npm run build:desktop
- name: Archive build artifact
uses: actions/upload-artifact@v2