Skip to content

Commit

Permalink
Use wrangler version from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbuckley committed Sep 3, 2024
1 parent d2c61ba commit ff66749
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cloudflare-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Wrangler version
id: wrangler_version
run: |
echo "npm=$(jq -r .dependencies.wrangler package.json | sed 's/\^//')" >> "$GITHUB_OUTPUT"
- name: Deploy Cloudflare Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
wranglerVersion: ${{ steps.wrangler_version.outputs.npm }}
secrets: |
BASIC_AUTH
SLACK_TOKEN
Expand Down

0 comments on commit ff66749

Please sign in to comment.