Skip to content

Merge branch 'tetherto-dev' #32

Merge branch 'tetherto-dev'

Merge branch 'tetherto-dev' #32

Workflow file for this run

name: Publish App on Merge to Live
on:
push:
branches:
- main
workflow_dispatch:
env:
CHANNEL_LINK: "pear://dkoa4973b11g5xze3xc9j1d8fkp1penukephkuqxeuuze4i7skpo"
permissions:
contents: read
packages: read
jobs:
publish-worker:
runs-on: ["self-hosted", "Linux", "large"]
if: github.repository_owner == 'noxtton'
steps:
- name: Clean workspace
run: |
# Clean existing directory on self-hosted runner
rm -rf .git ./* ./.[!.]* 2>/dev/null || true
- name: Checkout code with SSH
run: |
git clone --recurse-submodules git@github.com:${{ github.repository }}.git .
git checkout ${{ github.ref_name }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22.x"
- uses: actions/setup-node@v4
with:
registry-url: "https://npm.pkg.github.com"
scope: "@tetherto"
- name: Install worker dependencies
run: |
npm install --install-links
env:
NODE_AUTH_TOKEN: ${{ secrets.NOXTTON_BOT_PAT }}
- name: Extract translations
run: |
npm run lingui:extract
npm run lingui:compile
- name: Build application
run: npm run build:pear
- name: Prune dev dependencies
run: npm prune --omit=dev --omit=optional --install-links
- name: "Stage to channel"
run: |
echo "CHANNEL_LINK: ${CHANNEL_LINK}"
pear stage --ignore .git --no-ask ${CHANNEL_LINK} .
- name: "Release latest version"
run: |
pear release ${CHANNEL_LINK}