@nephelaiio/worker-deploy
v0.2.4
Published
CLI helpers for Cloudflare Worker management
Downloads
21
Readme
Worker Deploy
Worker deploy is an NPM package that uses Cloudflare Workers API to automate Cloudflare Worker and Secret deployments
Usage
Add the following steps to your CI configuration at the appropriate stages
- name: Deploy Cloudflare Worker with custom domain
run: |
echo Deploying worker "$WORKER"; \
npx @nephelaiio/worker-deploy -- \
deploy \
--verbose \
--literal LITERAL:true \
--variable ENVVAR \
--secret ENVSECRET \
--name "$WORKER" \
--route "$FQDN/*"
- name: Destroy Cloudflare worker
run: |
echo Deploying worker "$WORKER"; \
npx @nephelaiio/worker-deploy -- \
delete \
--verbose \
--name "$WORKER"
Contributing
We welcome contributions to this project! To get started, fork the repository and create a new branch for your changes. When you're ready to submit your changes, create a pull request.
Here's a list of planned tasks for the project:
- Refactor API methods to use @cloudflare/cloudflare-api
- Add support for deploying and linking KV stores
- Add support for deploying and linking R2 buckets
- Add support for deploying and linking Durable Objects
- Add support for deploying, linking and initializing D1 DBs
- Add support for running as a Github Action
Before submitting a pull request, please ensure that your code follows our code
style guidelines and that all tests pass. You can run tests with the command
make test
.
License
This project is licensed under the MIT License.