Add publish workflows for npmjs and CocoaPods #1316
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 }}
|
24
.github/workflows/publish-npm-release.yml
vendored
Normal file
24
.github/workflows/publish-npm-release.yml
vendored
Normal file
@@ -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 }}
|
Reference in New Issue
Block a user