Skip to content

Commit

Permalink
CI: Update checkout settings
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
Page- committed Sep 27, 2024
1 parent 077e0d8 commit 6cf377e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,26 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Cache node modules
uses: c-hive/gha-npm-cache@v1

- name: Install dependencies
run: npm ci

- name: Generate wrangler.toml
run: npm run generate
env:
env:
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CF_KV_NAMESPACE_REDIRECT_KV: ${{ secrets.CF_KV_NAMESPACE_REDIRECT_KV }}
CF_WORKERS_DEV: true

- name: Publish to Cloudflare with Wrangler
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
apiToken: ${{ secrets.CF_API_TOKEN }}
6 changes: 5 additions & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -31,6 +33,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -40,4 +44,4 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Run build command
run: npm run build
run: npm run build
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -29,6 +31,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v2
with:
Expand Down

0 comments on commit 6cf377e

Please sign in to comment.