Skip to content

Commit

Permalink
Update GitHub workflows to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwilsonperkin committed Mar 28, 2024
1 parent 86e47c8 commit c55c79d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci-a11y-vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: yarn
cache: pnpm

- name: Restore cache
uses: actions/cache@v3
Expand All @@ -52,13 +52,13 @@ jobs:
${{ runner.os }}-accessibility-test-v2-
- name: Install dependencies
run: yarn --frozen-lockfile
run: pnpm --frozen-lockfile

- name: Build packages
run: yarn build --filter=@shopify/polaris
run: pnpm build --filter=@shopify/polaris

- name: Build Storybook
run: yarn workspace @shopify/polaris run storybook:build --quiet
run: pnpm --filer=@shopify/polaris run storybook:build --quiet

- name: Run accessibility test
run: node ./polaris-react/scripts/accessibility-check.js
Expand All @@ -78,7 +78,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: yarn
cache: pnpm

- name: Restore cache
uses: actions/cache@v3
Expand All @@ -92,13 +92,13 @@ jobs:
${{ runner.os }}-visual-regression-test-v2-
- name: Install dependencies
run: yarn --frozen-lockfile
run: pnpm --frozen-lockfile

- name: Build packages
run: yarn build --filter=@shopify/polaris
run: pnpm build --filter=@shopify/polaris

- name: Build Storybook
run: yarn workspace @shopify/polaris run storybook:build --quiet
run: pnpm --filter=@shopify/polaris run storybook:build --quiet
env:
STORYBOOK_GITHUB_SHA: ${{ github.sha }}
STORYBOOK_GITHUB_REPO_URL: ${{ github.server_url }}/${{ github.repository }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: yarn
cache: pnpm

- name: Restore cache
uses: actions/cache@v3
Expand All @@ -45,13 +45,13 @@ jobs:
${{ runner.os }}-lint-v3-
- name: Install dependencies
run: yarn --frozen-lockfile
run: pnpm --frozen-lockfile

- name: Build packages
run: yarn build
run: pnpm build

- name: Lint
run: yarn lint
run: pnpm lint

- name: Type check
run: yarn type-check
run: pnpm type-check
8 changes: 4 additions & 4 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache: pnpm

- name: Restore cache
uses: actions/cache@v3
Expand All @@ -48,10 +48,10 @@ jobs:
${{ runner.os }}-node${{ matrix.node-version }}-test-v3-
- name: Install dependencies
run: yarn --frozen-lockfile
run: pnpm --frozen-lockfile

- name: Build packages
run: yarn build
run: pnpm build

- name: Test
run: yarn test
run: pnpm test
8 changes: 4 additions & 4 deletions .github/workflows/publish-polaris-for-vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: yarn
cache: pnpm

- name: Install dependencies
run: yarn
run: pnpm

- name: Build extension
run: yarn build --filter=polaris-for-vscode
run: pnpm build --filter=polaris-for-vscode

- name: Publish extension in the marketplace
run: yarn workspace polaris-for-vscode vsce publish
run: pnpm --filter=polaris-for-vscode vsce publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache: 'pnpm'

- name: Install dependencies
run: yarn --frozen-lockfile
run: pnpm --frozen-lockfile

- name: Build
run: yarn build:release
run: pnpm build:release

- name: Create release Pull Request or publish to NPM
id: changesets
uses: changesets/action@v1
with:
version: yarn version-packages
publish: yarn release-packages
version: pnpm version-packages
publish: pnpm release-packages
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/snapit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
build_script: yarn build:release
build_script: pnpm build:release

0 comments on commit c55c79d

Please sign in to comment.