worker-deploy 0.1.8
Install from the command line:
Learn more about npm packages
$ npm install @nephelaiio/worker-deploy@0.1.8
Install via package.json:
"@nephelaiio/worker-deploy": "0.1.8"
About this version
Worker deploy is an NPM package that uses Cloudflare Workers API to automate Cloudflare Worker and Secret deployments
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"
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:
- Add support for running as a Github Action
- Add support for email routing
- Add support for deploying and linking Durable Objects
- Add support for deploying, linking and initializing D1 DBs
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
npm test
.
This project is licensed under the MIT License.