Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Your Cloudflare account tag.
#
# Needed for:
# - Directory cache scripts
CLOUDFLARE_ACCOUNT_ID=

# Cloudflare V4 API token.
#
# Needed for:
# - Directory cache scripts
#
# Required permissions:
# - `Workers KV Storage`: Edit
# - `Workers R2 Storage`: Read
#
# See https://developers.cloudflare.com/fundamentals/api/get-started/create-token/
CLOUDFLARE_API_TOKEN=

# S3 credentials for your R2 bucket.
#
# Needed for:
# - Directory listings in the worker.
# - Directory cache scripts
#
# Required permissions:
# - `Object Read Only`
#
# See https://dash.cloudflare.com/?account=/r2/api-tokens
S3_ACCESS_KEY_ID=
S3_ACCESS_KEY_SECRET=
14 changes: 14 additions & 0 deletions .github/workflows/update-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ permissions:
on:
# Triggered by https://github.com/nodejs/node/blob/main/.github/workflows/update-release-links.yml
workflow_dispatch:
inputs:
version:
description: 'Node.js version (ex/ `v20.0.0`)'
required: true
type: string
schedule:
- cron: '0 0 * * *'

Expand Down Expand Up @@ -81,6 +86,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

# Do this last for now so we avoid breaking releases if anything breaks
- name: Update Directory Cache
run: node scripts/update-directory-cache.mjs "$VERSION_INPUT"
env:
VERSION_INPUT: '${{ inputs.version }}'
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
S3_ACCESS_KEY_ID: ${{ secrets.CF_ACCESS_KEY_ID }}
S3_ACCESS_KEY_SECRET: ${{ secrets.CF_SECRET_ACCESS_KEY }}

- name: Alert on Failure
if: failure() && github.repository == 'nodejs/release-cloudflare-worker'
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # 2.3.3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
dist/
.dev.vars
.sentryclirc
.env
Loading