-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add publish workflows for npmjs and CocoaPods (#1316)
Summary: This adds workflows which run on tag, or manually, to publish packages to npmjs and cocoapods. These secrets should be set, but this is untested. We can fix manually and re-run though. Pull Request resolved: #1316 Test Plan: no parse errors when adding to GitHub Reviewed By: cortinico Differential Revision: D47069617 Pulled By: NickGerleman fbshipit-source-id: efe0664be7cd287c598515c9572daff1655cfc14
- Loading branch information
1 parent
0294373
commit 5060279
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Publish CocoaPods Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
name: Publish to CocoaPods trunk | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup-apple | ||
|
||
- name: Publish Yoga | ||
run: pod trunk push Yoga.podspec | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | ||
|
||
- name: Publish YogaKit | ||
run: pod trunk push YogaKit.podspec | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Publish NPM Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
name: Publish to npmjs registry | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup-js | ||
|
||
- name: yarn publish | ||
run: yarn publish | ||
working-directory: javascript | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |