Skip to content

feat: use big file downloader #136

feat: use big file downloader

feat: use big file downloader #136

Workflow file for this run

name: cid-verifier
on:
push:
branches:
- main
paths:
- 'packages/cid-verifier/**'
- '.github/workflows/cid-verifier.yml'
- 'pnpm-lock.yaml'
pull_request:
paths:
- 'packages/cid-verifier/**'
- '.github/workflows/cid-verifier.yml'
- 'pnpm-lock.yaml'
jobs:
check:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm build:cid-verifier
- name: Lint
run: pnpm lint
test:
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm test:cid-verifier
deploy-staging:
name: Deploy Staging
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- name: Publish app
uses: cloudflare/wrangler-action@v3
env:
ENV: 'staging' # inform the build process what the env is
SENTRY_TOKEN: ${{secrets.SENTRY_TOKEN}}
SENTRY_UPLOAD: ${{ secrets.SENTRY_UPLOAD }}
with:
apiToken: ${{secrets.CF_TOKEN }}
workingDirectory: 'packages/cid-verifier'
environment: 'staging'
changelog:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
paths_released: ${{ steps.tag-release.outputs.paths_released }}
steps:
- uses: googleapis/release-please-action@v4
id: tag-release
with:
path: packages/cid-verifier
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
include-component-in-tag: true
release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(fromJson(needs.changelog.outputs.paths_released), 'packages/cid-verifier')
name: Release
runs-on: ubuntu-latest
needs:
- check
- test
- changelog
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- name: Deploy
uses: cloudflare/wrangler-action@v3
env:
ENV: 'production' # inform the build process what the env is
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}
SENTRY_UPLOAD: ${{ secrets.SENTRY_UPLOAD }}
with:
apiToken: ${{ secrets.CF_TOKEN }}
workingDirectory: 'packages/cid-verifier'
environment: 'production'