Skip to content

Commit 89deddc

Browse files
authored
Merge pull request #192 from xmarcos/feature/update-deps
feat: update dependencies and ci-cd pipeline
2 parents 8392590 + c86fccc commit 89deddc

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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'
@@ -31,6 +31,6 @@ jobs:
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 }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY package.json ./
99

1010
# Install project dependencies quietly and skip post-install scripts (e.g., husky)
1111
RUN 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

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
5257
wrangler tail
5358
```

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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"

0 commit comments

Comments
 (0)