Skip to content

Commit

Permalink
Add yarn pack validation
Browse files Browse the repository at this point in the history
Adds a step to validate the prepublish steps, and upload the resulting tarball.
  • Loading branch information
NickGerleman committed Jun 27, 2023
1 parent 23e58eb commit 9e56e38
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/validate-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9e56e38

Please sign in to comment.