Laurry gee patch 4 (#27) #7
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: Publish Devtools | |
on: | |
push: | |
branches: | |
- main | |
- "devtools/**" | |
- "**-devtools" | |
jobs: | |
publish: | |
if: ${{ github.repository_owner == 'cloudflare' }} | |
name: Build & Publish a branch preview of devtools to Cloudflare | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: "npm" # cache ~/.npm in case 'npm ci' needs to run | |
- name: Install workerd Dependencies | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get update | |
sudo apt-get install -y libc++1 | |
- name: Install NPM Dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Run Devtools release & publish | |
run: cd packages/wrangler-devtools && make publish | |
env: | |
CLOUDFLARE_ACCOUNT_ID: "e35fd947284363a46fd7061634477114" | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} |