Skip to content

Publish

Publish #573

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: read # for checkout
jobs:
publish_npm:
if: "(github.repository == 'invertase/react-native-google-mobile-ads') && (github.event_name == 'workflow_dispatch')"
name: 'NPM'
timeout-minutes: 5
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # Required for NPM OIDC Trusted Publish + Provenance
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Yarn Install
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: yarn
- name: Publish Packages
run: yarn semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}