Skip to content

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

ci: fix ci (#162)

Abdullah Atta22ddd24b8faf
diff --git a/apps/web/.github/workflows/build.yml b/apps/web/.github/workflows/build.yml
index 5521c1cfd..e0df6c102 100644
--- a/apps/web/.github/workflows/build.yml
+++ b/apps/web/.github/workflows/build.yml
@@ -5,6 +5,8 @@ on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
+ env:
+ GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
@@ -12,10 +14,8 @@ jobs:
persist-credentials: false
- name: Use Node.js 12.x
- uses: actions/setup-node@v1
+ uses: actions/[email protected]
with:
node-version: 12.x
- env:
- GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
- run: npm install
- run: npm build
diff --git a/apps/web/.github/workflows/deploy.yml b/apps/web/.github/workflows/deploy.yml
index 16e28e176..7f024d579 100644
--- a/apps/web/.github/workflows/deploy.yml
+++ b/apps/web/.github/workflows/deploy.yml
@@ -9,6 +9,8 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
+ env:
+ GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
@@ -19,15 +21,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- env:
- GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
- run: npm install
- name: Build and Deploy πŸš€
- uses: amondnet/now-deployment@v2
+ uses: amondnet/[email protected]
with:
- zeit-token: ${{ secrets.ZEIT_TOKEN }}
+ vercel-token: ${{ secrets.ZEIT_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- now-args: "--prod"
- now-org-id: "Wst8mhjfr4LzbjOe956M2Z4t"
- now-project-id: "QmStgLZ26V8aowiAAdyYaFVjRDWP9T8GEUoR9iJFSSnpWJ"
+ vercel-args: "--prod"
+ vercel-org-id: "Wst8mhjfr4LzbjOe956M2Z4t"
+ vercel-project-id: "QmStgLZ26V8aowiAAdyYaFVjRDWP9T8GEUoR9iJFSSnpWJ"
diff --git a/apps/web/.github/workflows/e2e.yml b/apps/web/.github/workflows/e2e.yml
index e36066276..34fbf89c2 100644
--- a/apps/web/.github/workflows/e2e.yml
+++ b/apps/web/.github/workflows/e2e.yml
@@ -5,6 +5,8 @@ on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
+ env:
+ GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
steps:
- run: echo "CI=true" >> $GITHUB_ENV
- name: Checkout πŸ›ŽοΈ
@@ -16,8 +18,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- env:
- GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
- run: npm install
- uses: microsoft/playwright-github-action@v1
- name: Running tests
diff --git a/apps/web/.github/workflows/eslint.yml b/apps/web/.github/workflows/eslint.yml
index 01279d6ee..7dfc41e2c 100644
--- a/apps/web/.github/workflows/eslint.yml
+++ b/apps/web/.github/workflows/eslint.yml
@@ -14,6 +14,8 @@ jobs:
lint:
# The type of runner that the job will run on
runs-on: ubuntu-latest
+ env:
+ GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -22,8 +24,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- env:
- GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
- run: npm install
- name: ESLint Action
uses: reviewdog/action-eslint@v1