Skip to content

Merge pull request #10 from LunarClient/chore/betterstack-telemetry-e… #4

Merge pull request #10 from LunarClient/chore/betterstack-telemetry-e…

Merge pull request #10 from LunarClient/chore/betterstack-telemetry-e… #4

Workflow file for this run

name: Release
on:
push:
branches: [dev, prod]
concurrency:
group: release-${{ github.ref_name }}
cancel-in-progress: false
jobs:
beta:
name: Beta Release
if: github.ref == 'refs/heads/dev' && github.repository_owner == 'SkyCryptWebsite' && github.actor != 'github-actions[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Git checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 11
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm fetch && pnpm install --frozen-lockfile
env:
HUSKY: "0"
- name: Prepare Beta Release
run: node scripts/release-beta.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
stable:
name: Stable Release
if: github.ref == 'refs/heads/prod' && github.repository_owner == 'SkyCryptWebsite' && github.actor != 'github-actions[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Git checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 11
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm fetch && pnpm install --frozen-lockfile
env:
HUSKY: "0"
- name: Prepare Stable Release
run: node scripts/release-stable.mjs
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
sync_dev_after_stable:
name: Sync Prod Back To Dev
needs: stable
if: github.ref == 'refs/heads/prod' && github.repository_owner == 'SkyCryptWebsite' && github.actor != 'github-actions[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Git checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.PAT_TOKEN }}
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 11
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm fetch && pnpm install --frozen-lockfile
env:
HUSKY: "0"
- name: Sync prod into dev
run: node scripts/sync-dev-after-stable.mjs