Skip to content

Commit

Permalink
chore: upgrade wrangler version
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Jul 3, 2024
1 parent 10165e3 commit 48feb86
Show file tree
Hide file tree
Showing 5 changed files with 410 additions and 709 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy-pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ jobs:
yarn
yarn run build
yarn run test
yarn build
- name: Deploy to Pre
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
preCommands: yarn build
command: deploy
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
yarn
yarn run build
yarn run test
yarn build
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
preCommands: yarn build
command: deploy --env ${{ github.event.inputs.environment }}
2 changes: 1 addition & 1 deletion docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ All you need to do is to have a Cloudflare account, then:
```sh
yarn
yarn wrangler login
yarn run publish:local
yarn run deploy:local
```

because we set `name` attribute in `wrangler.toml`, so this func will be deploy at:
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"dev:worker": "hereby",
"dev:proxy": "hereby",
"gen": "hereby",
"prepublish:local": "yarn build",
"publish:local": "wrangler publish",
"predeploy:local": "yarn build",
"deploy:local": "wrangler deploy",
"publish:libs": "lerna publish",
"lint": "eslint . && prettier --check '*.{json,js}' 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'",
"lint:fix": "eslint . --fix && prettier . -w",
Expand Down Expand Up @@ -67,7 +67,7 @@
"tsx": "^3.12.2"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240512.0",
"@cloudflare/workers-types": "^4.20240620.0",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@octokit/types": "^11.1.0",
Expand Down Expand Up @@ -95,6 +95,6 @@
"ts-jest": "^29.0.5",
"ts-json-schema-generator": "^2.1.1",
"typescript": "^5.4.5",
"wrangler": "^2.8.1"
"wrangler": "^3.62.0"
}
}
Loading

0 comments on commit 48feb86

Please sign in to comment.