Skip to content

The Open Source DocuSign Alternative.

chore: remove github action caches (#2802)

David Nguyen8dfd548c0825
diff --git a/.github/actions/node-install/action.yml b/.github/actions/node-install/action.yml
index bea5a0a49..b01a28740 100644
--- a/.github/actions/node-install/action.yml
+++ b/.github/actions/node-install/action.yml
@@ -1,4 +1,4 @@
-name: 'Setup node and cache node_modules'
+name: 'Setup node'
inputs:
node_version:
required: false
@@ -16,25 +16,7 @@ runs:
shell: bash
run: corepack enable npm
- - name: Cache npm
- uses: actions/cache@v3
- with:
- path: ~/.npm
- key: npm-${{ hashFiles('package-lock.json') }}
- restore-keys: npm-
-
- - name: Cache node_modules
- uses: actions/cache@v3
- id: cache-node-modules
- with:
- path: |
- node_modules
- packages/*/node_modules
- apps/*/node_modules
- key: modules-${{ hashFiles('package-lock.json') }}
-
- name: Install dependencies
- if: steps.cache-node-modules.outputs.cache-hit != 'true'
shell: bash
run: |
npm ci --no-audit
diff --git a/.github/actions/playwright-install/action.yml b/.github/actions/playwright-install/action.yml
index 27d0e66b4..ac3202f3d 100644
--- a/.github/actions/playwright-install/action.yml
+++ b/.github/actions/playwright-install/action.yml
@@ -1,19 +1,8 @@
name: Install playwright binaries
-description: 'Install playwright, cache and restore if necessary'
+description: 'Install playwright'
runs:
using: 'composite'
steps:
- - name: Cache playwright
- id: cache-playwright
- uses: actions/cache@v3
- with:
- path: |
- ~/.cache/ms-playwright
- ${{ github.workspace }}/node_modules/playwright
- key: playwright-${{ hashFiles('**/package-lock.json') }}
- restore-keys: playwright-
-
- name: Install playwright
- if: steps.cache-playwright.outputs.cache-hit != 'true'
run: npx playwright install --with-deps
shell: bash
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3a7afc44f..55ed7f27d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -41,14 +41,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- - name: Cache Docker layers
- uses: actions/cache@v4
- with:
- path: /tmp/.buildx-cache
- key: ${{ runner.os }}-buildx-${{ github.sha }}
- restore-keys: |
- ${{ runner.os }}-buildx-
-
- name: Build Docker Image
uses: docker/build-push-action@v5
with:
@@ -56,13 +48,3 @@ jobs:
context: .
file: ./docker/Dockerfile
tags: documenso-${{ github.sha }}
- cache-from: type=local,src=/tmp/.buildx-cache
- cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
-
- - # Temp fix
- # https://github.com/docker/build-push-action/issues/252
- # https://github.com/moby/buildkit/issues/1896
- name: Move cache
- run: |
- rm -rf /tmp/.buildx-cache
- mv /tmp/.buildx-cache-new /tmp/.buildx-cache
diff --git a/.github/workflows/issue-assignee-check.yml b/.github/workflows/issue-assignee-check.yml
index b601a8dc3..de53564ec 100644
--- a/.github/workflows/issue-assignee-check.yml
+++ b/.github/workflows/issue-assignee-check.yml
@@ -20,7 +20,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '18'
- cache: npm
- name: Install Octokit
run: npm install @octokit/rest@18
diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml
index 1a5afd359..15fe7cbfa 100644
--- a/.github/workflows/pr-labeler.yml
+++ b/.github/workflows/pr-labeler.yml
@@ -1,7 +1,7 @@
name: 'PR Labeler'
on:
- - pull_request_target
+ - pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
diff --git a/.github/workflows/pr-review-reminder.yml b/.github/workflows/pr-review-reminder.yml
index c81d9a34e..67dc32f34 100644
--- a/.github/workflows/pr-review-reminder.yml
+++ b/.github/workflows/pr-review-reminder.yml
@@ -20,7 +20,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '18'
- cache: npm
- name: Install Octokit
run: npm install @octokit/rest@18
diff --git a/.github/workflows/semantic-pull-requests.yml b/.github/workflows/semantic-pull-requests.yml
index 37b764652..76a1b2f42 100644
--- a/.github/workflows/semantic-pull-requests.yml
+++ b/.github/workflows/semantic-pull-requests.yml
@@ -1,7 +1,7 @@
name: 'Validate PR Name'
on:
- pull_request_target:
+ pull_request:
types:
- opened
- reopened