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: https://github.com/facebook/yoga/pull/1316 Test Plan: no parse errors when adding to GitHub Reviewed By: cortinico Differential Revision: D47069617 Pulled By: NickGerleman fbshipit-source-id: efe0664be7cd287c598515c9572daff1655cfc14
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0294373929
commit
506027925d
28
.github/workflows/publish-cocoapods-release.yml
vendored
Normal file
28
.github/workflows/publish-cocoapods-release.yml
vendored
Normal file
@@ -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 }}
|
Reference in New Issue
Block a user