0.2.4 • Published 2 months ago

@nephelaiio/worker-deploy v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Worker Deploy

Test 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.

0.2.4

2 months ago

0.1.2

10 months ago

0.2.0

8 months ago

0.1.8

8 months ago

0.1.7

8 months ago

0.1.9

8 months ago

0.2.3

8 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.6

8 months ago

0.1.5

9 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago