Shadow color adjustments #2074
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Consumer test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
TEST_FOLDER: primer-brand | |
jobs: | |
changes: | |
uses: ./.github/workflows/hasChanged.yml | |
test: | |
needs: changes | |
if: ${{ github.repository == 'primer/primitives' && needs.changes.outputs.outputAffected == 'true' }} | |
name: Primer Brand | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current repo | |
uses: actions/checkout@v3 | |
- name: Checkout Primer Brand repo | |
uses: actions/checkout@v3 | |
with: | |
repository: primer/brand | |
path: ${{env.TEST_FOLDER}} | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Caching dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install local dependencies | |
run: npm install --legacy-peer-deps --ignore-scripts | |
- name: Install consumer dependencies (reference) | |
run: pushd ${{env.TEST_FOLDER}}; npm install --legacy-peer-deps; popd | |
- name: Build and pack | |
run: npm pack | |
- name: Retrieving package version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@main | |
- name: Installing local build | |
run: | | |
cd ${{env.TEST_FOLDER}} | |
cp ../primer-primitives-${{ steps.package-version.outputs.current-version}}.tgz ./ | |
cp ../primer-primitives-${{ steps.package-version.outputs.current-version}}.tgz ./packages/design-tokens | |
npm install primer-primitives-${{steps.package-version.outputs.current-version}}.tgz --workspace packages/design-tokens | |
- name: Build consumer tokens | |
run: pushd ${{env.TEST_FOLDER}}; npm run build --workspace=packages/design-tokens; popd |