Socket
Book a DemoInstallSign in
Socket

@nephelaiio/worker-deploy

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nephelaiio/worker-deploy

CLI helpers for Cloudflare Worker management

0.2.4
latest
Source
npmnpm
Version published
Weekly downloads
15
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 02 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.