wrangler-action 1.2.0 includes two nice improvements for Workers + GitHub Actions users:
Changes
Remove NVM to speed up build time (commit)
Prior versions of wrangler-action included installing NVM. Users have found that this is no longer needed, and can save ~20s of run time on the workflow. Neat!
Thanks to @jasongill for this pull request!
Add support for wrangler secrets (commit)
If you use wrangler secrets, you can now set them as part of your workflow, by specifying matching GitHub secrets:
jobs:
deploy:
steps:
uses: cloudflare/wrangler-action@1.1.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
workingDirectory: 'subfoldername'
secrets: |
SECRET1
SECRET2
env:
SECRET1: ${{ secrets.SECRET1 }}
SECRET2: ${{ secrets.SECRET2 }}
Thanks to @bradyjoslin for this pull request!
Updating
You can update your version in your workflow by passing in the tag 1.2.0
in the uses
directive:
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Publish
uses: cloudflare/wrangler-action@1.2.0