Skip to content

Update to reflect@0.39.202402012120 #21

Update to reflect@0.39.202402012120

Update to reflect@0.39.202402012120 #21

name: Deploy Reflect
on:
push:
branches:
- main
pull_request:
branches: [main]
env:
NODE_VERSION: "18.x"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
- name: npm install
run: |
npm install
- name: publish
env:
REFLECT_AUTH_KEY: ${{ secrets.REFLECT_AUTH_KEY }}
REFLECT_APP_NAME: ${{ vars.REFLECT_APP_NAME }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
npx reflect publish --reflect-channel=canary --app=${REFLECT_APP_NAME}-${BRANCH_NAME//[^a-zA-Z0-9]/-} --auth-key-from-env=REFLECT_AUTH_KEY