Skip to content

refactor: update release configuration to use escaped version in rele… #101

refactor: update release configuration to use escaped version in rele…

refactor: update release configuration to use escaped version in rele… #101

Workflow file for this run

name: 🔩 Test CI
on:
push:
branches: [ "main" ]
tags-ignore:
- 'v/*'
paths-ignore:
- 'docs/api-docs.yaml'
- '.github/workflows/bump.yml'
- '.github/workflows/deploy.yml'
- '.github/workflows/bumppr.yml'
- 'README.md'
pull_request:
branches: [ "main" ]
jobs:
test:
name: 🧪 Test short
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
- name: 📦 Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: 📦 Install Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
- name: 💽 Setup Enviroment
run: |
cp wrangler.example.toml wrangler.toml
echo "[vars]" >> wrangler.toml
echo "AUTH_SECRET = \"production_value\" " >> wrangler.toml
echo "[[kv_namespaces]]" >> wrangler.toml
echo "binding = \"SHORT_URLS\"" >> wrangler.toml
echo "id = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"" >> wrangler.toml
env:
KV_NAMESPACE_ID: ${{ secrets.CF_KV_ID }}
- name: ⚙️ Install Dependencies
run: pnpm install --frozen-lockfile
- name: 📋 Test
run: pnpm test
docs:
name: 🧪 Build Documentation
if: github.repository == 'jqshuv/short'
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
- name: 📦 Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: 📦 Install Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
- name: ⚙️ Install Dependencies
run: pnpm install --frozen-lockfile
- name: 📋 Build Docs
run: pnpm docs:build