Skip to content

v2.0.3-alpha.0

v2.0.3-alpha.0 #23

Workflow file for this run

name: Deploy
on:
release:
types: [published]
jobs:
publish:
name: Deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.release.target_commitish }}
- uses: pnpm/action-setup@v4
with:
version: 10.4.1
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: "pnpm"
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Set up git
run: |
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
git config --local user.name 'github-actions[bot]'
- name: Bump version to ${{ github.event.release.tag_name }}
run: |
pnpm version ${{ github.event.release.tag_name }} --no-git-tag-version
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
environment: staging
- name: Push changes
run: git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}