forked from Expensify/react-native-onyx
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (19 loc) · 749 Bytes
/
Copy pathpublish.yml
File metadata and controls
23 lines (19 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Publish package to npmjs
on:
push:
branches: [main]
permissions:
# Required for OIDC: https://docs.npmjs.com/trusted-publishers
id-token: write
contents: read
# Ensure that only one instance of this workflow executes at a time.
# If multiple PRs are merged in quick succession, there will only ever be one publish workflow running and one pending.
concurrency: ${{ github.workflow }}
jobs:
publish:
# os-botify[bot] will update the version on `main`, so this check is important to prevent an infinite loop
if: ${{ github.actor != 'os-botify[bot]' }}
uses: Expensify/GitHub-Actions/.github/workflows/npmPublish.yml@main
secrets: inherit
with:
should_run_build: true