mirror of
https://github.com/software-mansion/argent.git
synced 2026-09-14 19:27:14 +08:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Publish to GitHub Packages
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24"
|
|
registry-url: "https://npm.pkg.github.com"
|
|
scope: "@swmansion"
|
|
|
|
- name: Download signed simulator-server binary
|
|
run: bash scripts/download-simulator-server.sh
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build -w @swmansion/argent
|
|
|
|
- run: test -x packages/mcp/bin/simulator-server
|
|
- run: test -x packages/mcp/bin/ax-service
|
|
- run: test -f packages/mcp/dylibs/libNativeDevtoolsIos.dylib
|
|
- run: test -f packages/mcp/dylibs/libKeyboardPatch.dylib
|
|
- run: test -f packages/mcp/dylibs/libArgentInjectionBootstrap.dylib
|
|
- run: npm pack --dry-run -w @swmansion/argent
|
|
|
|
- run: npm publish -w @swmansion/argent --registry https://npm.pkg.github.com
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|