Skip to content

v0.11.0

v0.11.0 #2

name: Release Standalone
on:
release:
types: [released]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout code from "stable" branch
uses: actions/checkout@v4
with:
ref: stable
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Enable Corepack for Yarn
run: corepack enable
- name: Set up Node cache # Set up Node cache by installing again
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn
- name: Build standalone
run: yarn build:standalone
env:
NEXT_PUBLIC_WC_PROJECT_ID: ${{vars.NEXT_PUBLIC_WC_PROJECT_ID}}
NEXT_PUBLIC_MAGIC_API_KEY: ${{vars.NEXT_PUBLIC_MAGIC_API_KEY}}
- name: Upload standalone to latest release
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: build/*.zip