Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/few-insects-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
4 changes: 2 additions & 2 deletions .github/actions/shared-node-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ runs:
using: "composite"
steps:
# NOTE: The pnpm/action-setup must come before action/setup-node!
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
name: Install pnpm
with:
run_install: false

- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: ${{ inputs.node-version }}
cache: pnpm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Publish to Chromatic for visual testing
uses: chromaui/action@f1f9e3277eb1eaa8cba4c6bcebc9809291ee29ea # v15.0.0
uses: chromaui/action@f191a0224b10e1a38b2091cefb7b7a2337009116 # v16.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_APP_CODE }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ jobs:

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

- run: echo ${{ steps.deployment.outputs.page_url }}
30 changes: 16 additions & 14 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@ jobs:
with:
fetch-depth: 0

- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
name: Install pnpm
with:
run_install: false

- name: Force Node version
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: ${{ matrix.node-version }}
# Note that we don't specify 'cache: pnpm' here because we
# don't install node_modules in this workflow/job!

- name: Get changed files
uses: Khan/actions@1662367b281368328845c72f77028f71d768b588 # get-changed-files-v2
uses: Khan/actions@30cadf1146cce2e3cdd2510dc8378063e9b08b58 # get-changed-files-v3
id: changed

- name: Filter out files that don't need a changeset
uses: Khan/actions@70e6afa0077187462838d024a1773adf217fb2b8 # filter-files-v2
uses: Khan/actions@069171ef7dea82ab80a8e499c4217d9b812f6af4 # filter-files-v3
id: match
with:
changed-files: ${{ steps.changed.outputs.files }}
Expand All @@ -62,14 +62,16 @@ jobs:
matchAllGlobs: true # Default is to match any of the globs, which ends up matching all files
conjunctive: true # Only match files that match all of the above

- uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
- uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0
with:
ssh-private-key: ${{ secrets.KHAN_ACTIONS_BOT_SSH_PRIVATE_KEY }}

- name: Verify changeset entries
uses: Khan/actions@2faf7c5ee0179da7639a01731d7b9997695bb723 # check-for-changeset-v1
uses: Khan/actions@4c5c5cbcfcdb1c059c9601b41bb686e75cc52544 # check-for-changeset-v2
with:
changed_files: ${{ steps.match.outputs.filtered }}
exclude: .github/,.storybook/
exclude_extensions: .test.ts, .test.tsx, .stories.ts, .stories.tsx, .mdx
exclude_globs: "**/__tests__/*, **/__docs__/*"

lint:
name: Lint, Typecheck, Format, and Test
Expand All @@ -88,7 +90,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Get All Changed Files
uses: Khan/actions@1662367b281368328845c72f77028f71d768b588 # get-changed-files-v2
uses: Khan/actions@30cadf1146cce2e3cdd2510dc8378063e9b08b58 # get-changed-files-v3
id: changed

- name: Check formatting
Expand All @@ -101,22 +103,22 @@ jobs:

- id: js-files
name: Find .js(x)/.ts(x) changed files
uses: Khan/actions@70e6afa0077187462838d024a1773adf217fb2b8 # filter-files-v2
uses: Khan/actions@069171ef7dea82ab80a8e499c4217d9b812f6af4 # filter-files-v3
with:
changed-files: ${{ steps.changed.outputs.files }}
extensions: ".js,.jsx,.ts,.tsx"
files: "pnpm-lock.yaml,tsconfig-build.json,tsconfig-common.json,tsconfig.json,packages/tsconfig-shared.json"

- id: eslint-reset
uses: Khan/actions@70e6afa0077187462838d024a1773adf217fb2b8 # filter-files-v2
uses: Khan/actions@069171ef7dea82ab80a8e499c4217d9b812f6af4 # filter-files-v3
name: Files that would trigger a full eslint run
with:
changed-files: ${{ steps.changed.outputs.files }}
files: ".eslintrc.js,package.json,pnpm-lock.yaml,.eslintignore"

# Linting / type checking
- name: Eslint
uses: Khan/actions@faa1972efeb996a27a95ddbd4ce5b555c40cd2e3 # full-or-limited-v0
uses: Khan/actions@8b8506a789a5c2a4a90bd8da8b6801db6931ee2d # full-or-limited-v0
with:
full-trigger: ${{ steps.eslint-reset.outputs.filtered }}
full: pnpm lint packages
Expand All @@ -138,14 +140,14 @@ jobs:

# Run tests for our target matrix
- id: jest-reset
uses: Khan/actions@70e6afa0077187462838d024a1773adf217fb2b8 # filter-files-v2
uses: Khan/actions@069171ef7dea82ab80a8e499c4217d9b812f6af4 # filter-files-v3
name: Files that would trigger a full jest run
with:
changed-files: ${{ steps.changed.outputs.files }}
files: "jest.config.js,package.json,pnpm-lock.yaml,test.config.js,test.transform.js"

- name: Jest
uses: Khan/actions@faa1972efeb996a27a95ddbd4ce5b555c40cd2e3 # full-or-limited-v0
uses: Khan/actions@8b8506a789a5c2a4a90bd8da8b6801db6931ee2d # full-or-limited-v0
with:
full-trigger: ${{ steps.jest-reset.outputs.filtered }}
full: pnpm jest
Expand Down Expand Up @@ -224,7 +226,7 @@ jobs:
# in place for the next job; in other words, it leaves the repo on a
# base branch.
- name: Check Builds
uses: preactjs/compressed-size-action@8518045ed95e94e971b83333085e1cb99aa18aa8 # v2
uses: preactjs/compressed-size-action@66325aad6443cb7cf89c4bfcd414aea2367cda94 # v2
with:
# We only care about the ES module size, really:
pattern: "**/dist/es/*.js"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@c48e67d110a68bc90ccf1098e9646092baacaa87 # v1.6.0
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
with:
publish: pnpm publish:ci
env:
Expand Down
Loading