Bump actions/checkout from 3 to 4 #295
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: wrangler | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: lint-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
WRANGLER_SEND_METRICS: 'false' | |
WRANGLER_VERSION: '3.10.1' | |
jobs: | |
wrangler: | |
runs-on: ubuntu-latest | |
name: ${{github.event_name == 'push' && 'publish' || 'build'}} | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install | |
run: npm ci | |
- name: Publish worker | |
if: github.event_name == 'push' | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
wranglerVersion: ${{ env.WRANGLER_VERSION }} | |
command: deploy | |
- name: Publish worker (dry-run) | |
if: github.event_name != 'push' | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: 'pull_request' | |
wranglerVersion: ${{ env.WRANGLER_VERSION }} | |
command: deploy --dry-run=true |