ci: π§ use reusable action to setup pnpm #18
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: Deploy to Cloudflare Workers | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy | |
steps: | |
- name: Checkout 𧳠| |
uses: actions/checkout@v3 | |
- name: Setup PNPM βοΈ | |
uses: AkashRajpurohit/.github/.github/actions/setup-pnpm@main | |
with: | |
node_version: 18 | |
pnpm_version: 7 | |
- name: Install dependencies β¬ | |
run: pnpm install --no-frozen-lockfile | |
# Deploy | |
- name: Deploy π | |
run: pnpm run deploy | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} |