ci: use nekowinston/setup-deno for caching (#348)
This commit is contained in:
1 parent
dc998eb14f
commit
7275c21f64
4 files changed
+5
-39
No files matched your search
@@ -8,9 +8,6 @@ on:
|
||||
branches: [main]
|
||||
paths: ["**/*.ts"]
|
||||
|
||||
env:
|
||||
DENO_DIR: /tmp/deno_cache
|
||||
|
||||
jobs:
|
||||
deno-check:
|
||||
name: Check Deno code
|
||||
@@ -20,16 +17,10 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Deno
|
||||
uses: denoland/setup-deno@v1
|
||||
uses: nekowinston/setup-deno@main
|
||||
with:
|
||||
deno-version: v1.x
|
||||
|
||||
- name: Cache Deno dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ hashFiles('./deno.lock') }}
|
||||
path: ${{ env.DENO_DIR }}
|
||||
|
||||
- name: Check
|
||||
run: |
|
||||
deno lint
|
||||
|
||||
@@ -7,7 +7,6 @@ on:
|
||||
- "scripts/**/*"
|
||||
|
||||
env:
|
||||
DENO_DIR: /tmp/deno_cache
|
||||
HAS_USERSTYLES_TOKEN: ${{ secrets.USERSTYLES_TOKEN != '' }}
|
||||
|
||||
jobs:
|
||||
@@ -31,16 +30,10 @@ jobs:
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
- name: Setup Deno
|
||||
uses: denoland/setup-deno@v1
|
||||
uses: nekowinston/setup-deno@main
|
||||
with:
|
||||
deno-version: v1.x
|
||||
|
||||
- name: Cache Deno dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ hashFiles('./deno.lock') }}
|
||||
path: ${{ env.DENO_DIR }}
|
||||
|
||||
- name: Generate health files
|
||||
run: deno task ci:generate
|
||||
|
||||
|
||||
@@ -6,9 +6,6 @@ on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
DENO_DIR: /tmp/deno_cache
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint Userstyles
|
||||
@@ -18,15 +15,9 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Deno
|
||||
uses: denoland/setup-deno@v1
|
||||
uses: nekowinston/setup-deno@main
|
||||
with:
|
||||
deno-version: v1.x
|
||||
|
||||
- name: Cache Deno dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ hashFiles('./deno.lock') }}
|
||||
path: ${{ env.DENO_DIR }}
|
||||
|
||||
- name: Run Lint
|
||||
run: deno task lint
|
||||
@@ -6,9 +6,6 @@ on:
|
||||
paths:
|
||||
- "scripts/userstyles.yml"
|
||||
|
||||
env:
|
||||
DENO_DIR: /tmp/deno_cache
|
||||
|
||||
jobs:
|
||||
sync-maintainers:
|
||||
name: Sync maintainers
|
||||
@@ -19,17 +16,11 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
- name: Set up Deno
|
||||
uses: denoland/setup-deno@v1
|
||||
- name: Setup Deno
|
||||
uses: nekowinston/setup-deno@main
|
||||
with:
|
||||
deno-version: v1.x
|
||||
|
||||
- name: Cache Deno dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ hashFiles('./deno.lock') }}
|
||||
path: ${{ env.DENO_DIR }}
|
||||
|
||||
- name: Sync maintainers
|
||||
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
|
||||
run: deno task ci:sync-maintainers
|
||||
|
||||
Reference in new issue
Block a user