Snackager Bundle #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snackager Bundle | |
defaults: | |
run: | |
working-directory: snackager | |
on: | |
workflow_dispatch: | |
inputs: | |
name: | |
type: string | |
description: Package name from npm | |
version: | |
type: string | |
description: Semver of the package to bundle | |
platforms: | |
type: string | |
description: Comma separated list of platforms to bundle | |
default: android,ios,web | |
jobs: | |
bundle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🏗 Setup repository | |
uses: actions/checkout@v3 | |
- name: 🏗 Setup snackager | |
uses: ./.github/actions/setup-snackager | |
- name: 🛠 Bundle package | |
run: | | |
NAME="${{ github.event.inputs.name }}" | |
VERSION="${{ github.event.inputs.version }}" | |
PLATFORMS="${{ github.event.inputs.platforms }}" | |
yarn bundle "$NAME@$VERSION?platforms=$PLATFORMS" | yarn bunyan --level DEBUG | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider |