From 0294373929300b07a38e5898b4a5240a7b052b23 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Wed, 28 Jun 2023 02:21:05 -0700 Subject: [PATCH] Add `yarn pack` validation (#1315) Summary: Adds a step to validate the prepublish steps, and upload the resulting tarball. Pull Request resolved: https://github.com/facebook/yoga/pull/1315 Test Plan: A tarball is uploaded as part of validation and looks decent. Reviewed By: cortinico Differential Revision: D47068368 Pulled By: NickGerleman fbshipit-source-id: 62c8946a1bb542310634c8a7384a0e4890b35bdf --- .github/workflows/validate-js.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/validate-js.yml b/.github/workflows/validate-js.yml index 2b856906..4f562805 100644 --- a/.github/workflows/validate-js.yml +++ b/.github/workflows/validate-js.yml @@ -72,3 +72,21 @@ jobs: - name: yarn lint run: yarn lint working-directory: javascript + + pack: + name: Pack + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-js + + - name: yarn pack + run: yarn pack --filename yoga-layout.tar.gz + working-directory: javascript + + - uses: actions/upload-artifact@v3 + with: + name: npm-package + path: javascript/yoga-layout.tar.gz