Merge pull request #121 from cloudflare/jacobmgevans/codeowners

Owners: Wrangler Team
This commit is contained in:
Jacob M-G Evans 2023-08-07 14:42:13 -05:00 committed by GitHub
commit a5fd4fdd34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 16 deletions

1
CODEOWNERS Normal file
View file

@ -0,0 +1 @@
* @cloudflare/wrangler

View file

@ -2,7 +2,9 @@
Easy-to-use GitHub Action to use [Wrangler](https://developers.cloudflare.com/workers/cli-wrangler/). Makes deploying Workers, Pages or modifying R2 easy to do. Easy-to-use GitHub Action to use [Wrangler](https://developers.cloudflare.com/workers/cli-wrangler/). Makes deploying Workers, Pages or modifying R2 easy to do.
Wrangler v1 is longer supported. - Wrangler v1 is no longer supported.
- Global API key & Email Auth no longer supported
[Refer to Changelog for more information](CHANGELOG.md). [Refer to Changelog for more information](CHANGELOG.md).
## Usage ## Usage
@ -45,19 +47,6 @@ jobs:
apiToken: ${{ secrets.CF_API_TOKEN }} apiToken: ${{ secrets.CF_API_TOKEN }}
``` ```
`wrangler-action` also supports using your [global API key and email](https://developers.cloudflare.com/workers/quickstart/#global-api-key) as an authentication method, although API tokens are preferred. Pass in `apiKey` and `email` to the GitHub Action to use this method:
```yaml
jobs:
deploy:
name: Deploy
steps:
uses: cloudflare/wrangler-action@3.0.0
with:
apiKey: ${{ secrets.CF_API_KEY }}
email: ${{ secrets.CF_EMAIL }}
```
## Configuration ## Configuration
If you need to install a specific version of Wrangler to use for deployment, you can also pass the input `wranglerVersion` to install a specific version of Wrangler from NPM. This should be a [SemVer](https://semver.org/)-style version number, such as `2.20.0`: If you need to install a specific version of Wrangler to use for deployment, you can also pass the input `wranglerVersion` to install a specific version of Wrangler from NPM. This should be a [SemVer](https://semver.org/)-style version number, such as `2.20.0`:

View file

@ -25,8 +25,8 @@
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"test": "vitest", "test": "vitest",
"format": "prettier --write .", "format": "prettier --write . --ignore-path ./dist/**",
"check": "prettier --check ." "check": "prettier --check . --ignore-path ./dist/**"
}, },
"dependencies": { "dependencies": {
"@actions/core": "^1.10.0" "@actions/core": "^1.10.0"