Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Jun 29, 2023
1 parent 41e465b commit b83005d
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 34 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 7.28.0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install --frozen-lockfile --immutable
node-version: 19
cache: 'pnpm'
- run: pnpm install --frozen-lockfile

- name: Setup NPM credentials
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
Expand All @@ -35,7 +38,7 @@ jobs:
uses: 'kamilkisiela/release-canary@master'
with:
npm-token: ${{ secrets.NPM_TOKEN }}
npm-script: 'yarn release:canary'
npm-script: 'pnpm release:canary'
changesets: true
- name: Publish a message
if: steps.canary.outputs.released == 'true'
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: License Check
on:
pull_request:
paths:
- 'yarn.lock'
- 'pnpm.lock'

jobs:
check:
Expand All @@ -11,11 +11,14 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7.28.0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install --frozen-lockfile --immutable
node-version: 19
cache: 'pnpm'
- run: pnpm install --frozen-lockfile

- name: License Check
run: yarn license-check
run: pnpm license-check
15 changes: 10 additions & 5 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,19 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 7.28.0

- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install --frozen-lockfile --immutable
node-version: 19
cache: 'pnpm'
- run: pnpm install --frozen-lockfile

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

- name: ESLint
run: yarn lint
run: pnpm lint
11 changes: 7 additions & 4 deletions .github/workflows/pr-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7.28.0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install --frozen-lockfile --immutable
node-version: 19
cache: 'pnpm'
- run: pnpm install --frozen-lockfile

- name: Run E2E suite
run: yarn e2e
run: pnpm e2e
12 changes: 6 additions & 6 deletions .github/workflows/pr-graphql-compat-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:

- uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 16
cache: 'pnpm'
node-version: 19

- name: Force GraphQL ${{ matrix.release }} solution
run: yarn repo:resolve graphql@${{ matrix.release }}
run: pnpm repo:resolve graphql@${{ matrix.release }}

- run: yarn install --frozen-lockfile --immutable
- run: pnpm install --frozen-lockfile

- name: Unit Tests
run: yarn test:ci
run: pnpm test:ci

- name: Cypress
run: yarn e2e
run: pnpm e2e
11 changes: 7 additions & 4 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7.28.0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install --frozen-lockfile --immutable
node-version: 19
cache: 'pnpm'
- run: pnpm install --frozen-lockfile

- name: Run Unit Tests
run: yarn test:ci --coverage
run: pnpm test:ci --coverage

- uses: codecov/codecov-action@v3
with:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 7.28.0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install --frozen-lockfile --immutable
node-version: 19
cache: 'pnpm'
- run: pnpm install --frozen-lockfile

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: yarn ci:version
version: pnpm ci:version
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
publish: pnpm release
env:
# only use GH token here, because GITHUB_TOKEN is no longer allowed to create PRs
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b83005d

Please sign in to comment.