File tree Expand file tree Collapse file tree 5 files changed +13
-7
lines changed
Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : checkout
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v4
1515 with :
1616 fetch-depth : 0
1717 - name : get node version
18- run : echo "::set-output name= NODE_VERSION:: $(node -p "JSON.parse(fs.readFileSync('./.versions','utf8')).node")"
18+ run : echo "NODE_VERSION= $(node -p "JSON.parse(fs.readFileSync('./.versions','utf8')).node")" >> $GITHUB_OUTPUT
1919 id : node_version
2020 - name : setup node
21- uses : actions/setup-node@v2
21+ uses : actions/setup-node@v4
2222 with :
2323 node-version : ${{ steps.node_version.outputs.NODE_VERSION }}
2424 cache : ' npm'
3131 env :
3232 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3333 - name : deploy to cloudflare workers
34- uses : cloudflare/wrangler-action@2.0.0
34+ uses : cloudflare/wrangler-action@v3
3535 with :
3636 apiToken : ${{ secrets.CF_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ COPY package.json ./
99
1010# Install project dependencies quietly and skip post-install scripts (e.g., husky)
1111RUN npm install --no-audit --no-fund --quiet && \
12- npm install -g wrangler@latest && \
12+ npm install -g wrangler@4.69.0 && \
1313 npm cache clean --force
1414
1515# Copy the rest of the application code
Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ docker compose up
4747→ < https://enchinito-api.xmarcos.workers.dev/ >
4848
4949``` bash
50- wrangler publish
50+ # Using Docker
51+ CLOUDFLARE_API_TOKEN=your_token_here docker compose run --rm app wrangler deploy
52+
53+ # Or using native wrangler
54+ wrangler deploy
55+
5156# tail prod logs
5257wrangler tail
5358```
Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ services:
88 - /app/node_modules
99 environment :
1010 - NODE_ENV=development
11+ - CLOUDFLARE_API_TOKEN
1112 stdin_open : true
1213 tty : true
Original file line number Diff line number Diff line change 2222 "husky" : " ^9.0.11" ,
2323 "is-ci" : " ^3.0.1" ,
2424 "semantic-release" : " ^23.0.2" ,
25- "wrangler" : " ^3.34.2 "
25+ "wrangler" : " 4.69.0 "
2626 },
2727 "engines" : {
2828 "node" : " >=16"
You can’t perform that action at this time.
0 commit comments