Skip to content

Commit

Permalink
chore(pie-monorepo-utils): WCP-000 migrate GHA JS to package
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Siggery committed Nov 18, 2024
1 parent d928451 commit 350cf31
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changeset-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
github-token: ${{ secrets.CHANGESETS_TOKEN }}
script: |
const execa = require('execa');
const script = require('./.github/workflows/changeset-snapshot/create-and-publish.js')
const script = require('./packages/tools/pie-monorepo-utils/changeset-snapshot/create-and-publish.js')
await script({ github, context }, execa);
- name: Add failure comment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler-get-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
script: |
const { PR_BRANCH_NAME, PR_NUMBER } = process.env;
const script = require('./.github/workflows/labeler/get-labels.js');
const script = require('./packages/tools/pie-monorepo-utils/pr-labeler/get-labels.js');
const config = {
prBranchName: PR_BRANCH_NAME,
prNumber: PR_NUMBER,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler-set-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require('./.github/workflows/labeler/set-labels.js');
const script = require('./packages/tools/pie-monorepo-utils/pr-labeler/set-labels.js');
await script({ github, context });
2 changes: 1 addition & 1 deletion .github/workflows/test-aperture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
github-token: ${{ secrets.CHANGESETS_TOKEN }}
script: |
const execa = require('execa');
const script = require('./.github/workflows/changeset-snapshot/test-aperture.js')
const script = require('./packages/tools/pie-monorepo-utils/changeset-snapshot/test-aperture.js')
await script({ github, context }, execa);
- name: Add failure comment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
CHANGESET_FILE_PATH: ${{ env.CHANGESET_FILE_PATH }} # this is set by the previous step
with:
script: |
const script = require('./.github/workflows/create-icons-update-pr/create-icons-update-pr.js');
const script = require('./packages/tools/pie-monorepo-utils/create-icons-update-pr/create-icons-update-pr.js');
const { BRANCH_NAME, CHANGESET_FILE_PATH } = process.env
const config = {
github,
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@
"postinstall": "husky install",
"prepack": "pinst --disable",
"postpack": "pinst --enable",
"test": "yarn test:workflows && cross-env-shell turbo run test --filter=!pie-monorepo --token=${TURBO_TOKEN}",
"test:workflows": "cross-env-shell vitest run .github/workflows",
"test": "cross-env-shell turbo run test --filter=!pie-monorepo --token=${TURBO_TOKEN}",
"test:watch": "cross-env-shell turbo run test:watch --filter=!pie-monorepo",
"test:ci": "yarn test:workflows && cross-env-shell turbo run test:ci --filter=!'./apps/examples/*' --filter=!pie-monorepo --token=${TURBO_TOKEN}",
"test:ci": "cross-env-shell turbo run test:ci --filter=!'./apps/examples/*' --filter=!pie-monorepo --token=${TURBO_TOKEN}",
"test:coverage": "turbo run test:coverage --filter=!pie-monorepo",
"test:generate-routes": "turbo run test:generate-routes --filter=!pie-monorepo --token=${TURBO_TOKEN}",
"test:browsers-setup": "turbo run test:browsers-setup --filter=!pie-monorepo --token=${TURBO_TOKEN}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { beforeEach, describe, expect, test, vi } from 'vitest';
const workflow = require('../create-and-publish');
const workflow = require('../../changeset-snapshot/create-and-publish');
const { Readable } = require('stream');

let context;
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 350cf31

Please sign in to comment.