Skip to content

YPE-1178 Add IOS CI build test (#34) #31

YPE-1178 Add IOS CI build test (#34)

YPE-1178 Add IOS CI build test (#34) #31

Workflow file for this run

name: Release
on:
push:
branches:
- main
workflow_dispatch:
# Allow manual trigger for emergency releases
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to create releases and push commits
issues: write # to comment on released issues
pull-requests: write # to comment on released PRs
id-token: write # for npm provenance and trusted publishing
steps:
- name: πŸ“₯ Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for semantic-release
# Persist credentials for commits during release
# persist-credentials: false
ssh-key: ${{ secrets.RELEASE_SSH_KEY }}
- name: 🟒 Setup Node
uses: actions/setup-node@v4
with:
node-version: "24" # 24 or Higher LTS
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: πŸ”Ό Upgrade NPM
run: npm install -g npm@latest
- name: πŸ“¦ Install dependencies
run: npm ci
- name: πŸ›‘οΈ Validate before release
run: |
echo "Running pre-release validation..."
npm run typecheck
npm run lint
npm run test
npm run build
- name: πŸš€ Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
HUSKY: 0
run: |
# Configure git for commits by semantic-release
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Run semantic-release (using SSH deploy key from checkout)
npx semantic-release
- name: πŸ“Š Release Summary
if: success()
run: |
echo "βœ… Release process completed successfully"
echo "Check the releases page: https://github.com/${{ github.repository }}/releases"
echo "Check npm: https://www.npmjs.com/package/@youversion/react-native-sdk"