Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/npm-audio-package-build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
name: NPM Build and publish to npm

on:
workflow_call:
schedule:
- cron: '01 00 * * *' # Every day at 00:01 UTC
workflow_dispatch:
inputs:
nightly-build:
latest-build:
description: 'Whether to publish as a latest build'
required: true
type: boolean
workflow_dispatch:

permissions:
id-token: write
contents: read

concurrency:
group: 'npm-audio-package-build'
cancel-in-progress: false

jobs:
build:
if: github.repository == 'software-mansion/react-native-audio-api'
runs-on: ubuntu-latest
environment: deployment
permissions:
contents: read
id-token: write
Expand Down Expand Up @@ -53,7 +60,7 @@ jobs:

- name: Set tag
run: |
if [[ "${{ inputs.nightly-build }}" == "true" ]]; then
if [[ "${{ inputs.latest-build }}" != "true" ]]; then
echo "TAG=audio-api-nightly" >> $GITHUB_ENV
else
echo "TAG=latest" >> $GITHUB_ENV
Expand All @@ -67,7 +74,7 @@ jobs:
id: build
working-directory: ${{ env.AUDIO_API_DIR }}
run: |
if [[ "${{ inputs.nightly-build }}" == "true" ]]; then
if [[ "${{ inputs.latest-build }}" != "true" ]]; then
./scripts/create-package.sh generate_nightly_version
else
./scripts/create-package.sh
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/npm-publish-nightly.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ permissions:

concurrency:
group: 'pages'
cancel-in-progress: false
cancel-in-progress: true

jobs:
publish:
if: github.repository == 'software-mansion/react-native-audio-api'
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down