Skip to content

Commit

Permalink
test tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGreiner-eaton committed Jan 18, 2024
1 parent a93fd68 commit 68dc360
Showing 1 changed file with 41 additions and 45 deletions.
86 changes: 41 additions & 45 deletions .github/workflows/blui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,48 +127,44 @@ jobs:
if-no-files-found: error
path: dist

# build_showcase:
# runs-on: ubuntu-latest
# needs: npm_pack

# strategy:
# matrix:
# node-version: [16.x]

# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'yarn'
# - run: git submodule init && git submodule update
# - run: yarn --frozen-lockfile
# working-directory: demos/showcase
# - run: yarn install:dependencies
# working-directory: demos/showcase
# - name: Download tarball & extract
# uses: actions/download-artifact@v3
# with:
# name: tarball
# path: tarball
# - run: tar xzf tarball/*.tar.gz -C $RUNNER_TEMP
# - run: |
# cp -r demos/showcase/node_modules/@brightlayer-ui/react-components $TAR_DIR/react-components
# cp -r demos/showcase/package.json $TAR_DIR/package.json

# - uses: actions/checkout@v3
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'yarn'
# - run: git submodule init && git submodule update
# - run: yarn --frozen-lockfile
# working-directory: demos/showcase
# # need to add step to install tarball from npm pack above
# # Install the packed version of @brightlayer-ui/react-components
# # PACKAGED_VERSION=`node -p "require('../../dist/package.json').version"`
# # yarn add ../../dist/brightlayer-ui-react-components-$PACKAGED_VERSION.tgz
# - run: yarn build
build_showcase:
runs-on: ubuntu-latest
needs: npm_pack

strategy:
matrix:
node-version: [16.x]

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: git submodule init && git submodule update
- run: yarn --frozen-lockfile
working-directory: demos/showcase
- name: Download tarball
uses: actions/download-artifact@v3
with:
name: tarball
path: tarball
- run: tar xzf tarball/*.tar.gz -C $RUNNER_TEMP
- run: |
cp -r demos/showcase/package.json $TAR_DIR/package.json
yarn add $TAR_DIR/brightlayer-ui-react-components-$PACKAGED_VERSION.tgz
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn --frozen-lockfile
working-directory: demos/showcase
- run: yarn
working-directory: demos/showcase
- run: yarn build
working-directory: demos/showcase

0 comments on commit 68dc360

Please sign in to comment.