Fixes for publish workflows (#1319)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1319 This fixes a few issues encountered during publishing Yoga `2.0.0-beta.1`. 1. The tag trigger was missing quotes needed to be valid syntax 2. `pod trunk publish` must be run with `--synchronous` if we are publishing a package that relies on another just published package. There does not seem to be a way to just publish evertything at once. 3. `yarn publish` was not reading the NPM auth token from the environment, so we write it to a `.npmrc` before publishing. 4. The root `.gitignore` was not updated when moving to yarn workspaces to ignore `node_modules`, so the OSS Yoga repo (not internal) will, try to add its contents after `yarn install`. Reviewed By: cortinico Differential Revision: D47135994 fbshipit-source-id: d8c9b05176a98443be1ebc7cf74996f22520d20d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cdc3328ca5
commit
1b40f05b8c
@@ -3,7 +3,7 @@ name: Publish Android Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- *
|
||||
- '*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
@@ -3,7 +3,7 @@ name: Publish CocoaPods Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- *
|
||||
- '*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -23,6 +23,7 @@ jobs:
|
||||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
|
||||
|
||||
- name: Publish YogaKit
|
||||
run: pod trunk push YogaKit.podspec
|
||||
# Must run with --synchronous since YogaKit may depend on the just published version of Yoga
|
||||
run: pod trunk push YogaKit.podspec --synchronous
|
||||
env:
|
||||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
|
||||
|
7
.github/workflows/publish-npm-release.yml
vendored
7
.github/workflows/publish-npm-release.yml
vendored
@@ -3,7 +3,7 @@ name: Publish NPM Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- *
|
||||
- '*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -17,8 +17,9 @@ jobs:
|
||||
- name: Setup
|
||||
uses: ./.github/actions/setup-js
|
||||
|
||||
- name: Store auth token in config file
|
||||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
||||
|
||||
- name: yarn publish
|
||||
run: yarn publish
|
||||
working-directory: javascript
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,6 +6,7 @@
|
||||
/.buckd
|
||||
/gentest/test.html
|
||||
.buck-java11
|
||||
node_modules
|
||||
|
||||
# Jekyll
|
||||
/.sass-cache/
|
||||
|
1
javascript/.gitignore
vendored
1
javascript/.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
/binaries
|
||||
/build
|
||||
/dist
|
||||
/node_modules
|
||||
|
3
website-next/.gitignore
vendored
3
website-next/.gitignore
vendored
@@ -1,6 +1,3 @@
|
||||
# Dependencies
|
||||
/node_modules
|
||||
|
||||
# Production
|
||||
/build
|
||||
|
||||
|
2
website/.gitignore
vendored
2
website/.gitignore
vendored
@@ -1,6 +1,4 @@
|
||||
# Project dependencies
|
||||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
|
||||
node_modules
|
||||
.cache/
|
||||
# Build directory
|
||||
public/
|
||||
|
Reference in New Issue
Block a user