Snackager Bundle #24
Workflow file for this run
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 secrets | |
uses: ./.github/actions/setup-secrets | |
with: | |
git-crypt-key: ${{ secrets.GIT_CRYPT_KEY }} | |
- 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 |