This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
chore(deps): Bump tar from 6.1.11 to 6.2.1 #77
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: Build and Deploy Worker | |
on: push | |
jobs: | |
worker: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Use Node 16.15.1 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.15.1 | |
- uses: pnpm/action-setup@v2.0.1 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8 | |
run_install: | | |
- args: [--no-frozen-lockfile] | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
run: | | |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Check syntax | |
run: npm run format && npm run lint | |
- name: Publish | |
uses: cloudflare/wrangler-action@1.3.0 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
secrets: | | |
AUTH_KEY | |
HASURA_ADMIN_SECRET | |
HASURA_ENDPOINT | |
env: | |
AUTH_KEY: ${{ secrets.AUTH_KEY }} | |
HASURA_ADMIN_SECRET: ${{ secrets.HASURA_ADMIN_SECRET }} | |
HASURA_ENDPOINT: ${{ secrets.HASURA_ENDPOINT }} |