docs(changeset): Kicking off some API builds.... they're broken :/ #33
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: Publish Release | |
on: | |
push: | |
branches: | |
- main | |
env: | |
PNPM_CACHE_PATH: ~/.pnpm-store | |
PNPM_CACHE_NAME: pnpm-store-cache | |
VITE_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
VITE_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} | |
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }} | |
REDIS_ENDPOINT_URI: ${{ secrets.REDIS_ENDPOINT_URI }} | |
FOOTBALL_DATA_API_KEY: ${{ secrets.FOOTBALL_DATA_API_KEY }} | |
jobs: | |
release: | |
if: ${{ contains(github.event.head_commit.message, 'changeset-release/') }} | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Get branch name | |
id: branch | |
run: | | |
echo "branch_name=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV | |
- name: Get node version | |
id: nvmrc | |
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
always-auth: true | |
node-version-file: ".nvmrc" | |
registry-url: https://registry.npmjs.org | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Publish Release | |
run: node .ops/publish.mjs | |
shell: bash | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |