Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync fork #4

Merged
merged 224 commits into from
Apr 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
4d21f32
Merge pull request #1141 from windkomo/webpack-5-export-version
hasparus Sep 3, 2020
446155f
fix(components): add primary as default variant for Alert component
sohrab- Aug 4, 2020
14e1696
Merge pull request #1102 from sohrab-/fix/alert-variant
hasparus Aug 6, 2020
bd5eb25
fix(components): add primary as default variant for Badge component
lachlanjc Aug 8, 2020
b1e01d2
Merge pull request #1109 from lachlanjc/patch-6
hasparus Aug 10, 2020
e313e2c
Add theme colors support to columnRuleColor, closes #1084
lachlanjc Jul 23, 2020
511b7b2
Merge pull request #1085 from lachlanjc/patch-5
hasparus Aug 10, 2020
71b4f9b
Update CHANGELOG.md for 0.3.2
hasparus Nov 5, 2020
3482e3c
feat: add default theme key for text
joe-bell Apr 26, 2020
368431e
Update CHANGELOG.md
hasparus Nov 5, 2020
80ad9af
Add missing changelog for 0.3.1
hasparus Nov 5, 2020
91f420f
Merge pull request #1233 from lachlanjc/patch-6
hasparus Nov 2, 2020
82ee6f1
Add docs change to CHANGELOG
hasparus Nov 5, 2020
5721163
Merge pull request #1231 from atanasster/contributing-spell-dependencies
hasparus Nov 2, 2020
44db6e1
Merge pull request #1235 from atanasster/docs-theme-ui-logo
hasparus Nov 5, 2020
979f019
Fix theme editor output in docs
matt-cratebind Sep 8, 2020
f498185
Update changelog
hasparus Nov 5, 2020
c69b1d0
Update changelog
hasparus Nov 5, 2020
a53c276
Move index files to src
alexanderchan Oct 2, 2020
7b011ce
Add preconstruct
alexanderchan Oct 2, 2020
f3f0284
Move index to src
alexanderchan Oct 2, 2020
1ec654b
Run preconstruct fix to update main
alexanderchan Oct 2, 2020
7c0609c
Fix mdx deps
alexanderchan Oct 2, 2020
a4d93d4
Exclude docs from preconstruct packaging
alexanderchan Oct 2, 2020
5fac4ae
Add missing dependency
alexanderchan Oct 2, 2020
1b21a57
Add a default module type
alexanderchan Oct 2, 2020
ef15d56
Fix type export
alexanderchan Oct 2, 2020
3b51730
Remove unused files
alexanderchan Oct 2, 2020
1bf3af9
Run top level typecheck
alexanderchan Oct 2, 2020
e50b126
Add dev initialization
alexanderchan Oct 2, 2020
976ba00
Remove references to microbundle
alexanderchan Oct 2, 2020
be1ee81
Update build to more closely match previous build
alexanderchan Oct 2, 2020
af19f9f
update yarn.lock
alexanderchan Nov 7, 2020
e485c09
ignore top level theme-ui to prefer packages theme-ui
alexanderchan Nov 7, 2020
2c0f2d3
Remove types reference since it comes from cjs.d.ts
alexanderchan Nov 7, 2020
639db81
chore(gatsby-plugin-theme-ui): make the theme private to work around …
hasparus Nov 8, 2020
d978e5c
Merge pull request #836 from sjmeverett/peer-deps-fix
hasparus Oct 26, 2020
c20182e
Update changelog
hasparus Nov 8, 2020
3f78f13
v0.3.2
hasparus Nov 8, 2020
988cc19
Bump versions
hasparus Nov 8, 2020
e1f5c6c
fix(style-guide): peer dependency
hasparus Nov 8, 2020
bfba2df
v0.3.3
hasparus Nov 8, 2020
7ea5585
fix(gatsby-plugin-theme-ui): fix peer dependency
hasparus Nov 8, 2020
7840f82
v0.3.4
hasparus Nov 20, 2020
000d33a
chore: rename master to develop and previous to stable
hasparus Dec 9, 2020
198d0e2
chore: checkout .gitignore from develop
hasparus Dec 21, 2020
66f5544
chore: remove dist on yarn clean
hasparus Dec 21, 2020
cf86da0
Update changelog
hasparus Dec 21, 2020
6091774
chore: add release scripts to package.json
hasparus Dec 21, 2020
93f0e12
v0.3.5
hasparus Dec 21, 2020
9107006
Merge branch 'add/preconstruct' into preconstruct-2
hasparus Dec 23, 2020
dda6fbf
wip(workspace): update to preconstruct 2
hasparus Jan 4, 2021
5da9775
test(theme-ui): stop spamming log with console.warn
hasparus Jan 10, 2021
b8e8501
tools(preconstruct): fight config files to make tests pass
hasparus Jan 10, 2021
e0b5b48
Merge branch 'develop' into preconstruct-2
hasparus Jan 10, 2021
7192e5d
test(css): update to make tests typecheck in strict mode
hasparus Jan 10, 2021
f07f07c
tools(preconstruct): fix theme-ui entrypoints
hasparus Jan 11, 2021
9cc8261
fix(editor): fix type errors
hasparus Jan 11, 2021
812eb41
fix(theme-provider): update theme-ui/css dependency
hasparus Jan 11, 2021
1b91a93
tools(preconstruct): remove tsconfigs
hasparus Jan 11, 2021
c66b243
fix(editor): assert that color is string
hasparus Jan 11, 2021
c177969
fix(preconstruct): fix entrypoints
hasparus Jan 11, 2021
53c0347
fix: add theme.original space to save colors
atanasster Jan 18, 2021
38007e1
fix: removed type and renamed to __original
atanasster Jan 19, 2021
6e75d9b
chore: checkout scripts/should-skip-deploy.sh from develop
hasparus Jan 22, 2021
293c45e
Merge branch 'develop' into preconstruct-2
hasparus Jan 24, 2021
b16e8b8
fix(docs): Fix typo in color mode docs
lachlanjc Feb 22, 2021
34a0cc7
chore(deps): bump gatsby-plugin-mdx from 1.8.0 to 1.10.0
dependabot-preview[bot] Feb 22, 2021
922ce76
chore(deps): bump polished from 4.1.0 to 4.1.1
dependabot-preview[bot] Feb 22, 2021
b7370c6
chore(deps-dev): bump @babel/cli from 7.12.10 to 7.12.17
dependabot-preview[bot] Feb 22, 2021
e3b097d
chore(deps-dev): bump @babel/plugin-transform-runtime
dependabot-preview[bot] Feb 22, 2021
83c4b04
chore(deps-dev): bump postcss from 8.2.4 to 8.2.6
dependabot-preview[bot] Feb 22, 2021
9109a15
chore(deps-dev): bump @babel/preset-env from 7.12.13 to 7.12.17
dependabot-preview[bot] Feb 22, 2021
a7eb63c
chore(deps): bump type-fest from 0.20.2 to 0.21.1
dependabot-preview[bot] Feb 22, 2021
01f008f
chore(deps-dev): bump husky from 4.3.8 to 5.1.0
dependabot-preview[bot] Feb 22, 2021
fe97847
(docs): Use filename on Linked Headings code blocks
lachlanjc Feb 23, 2021
edbf59f
Update Discord URL
lachlanjc Feb 26, 2021
72256ad
Update Discord URL on homepage
lachlanjc Feb 26, 2021
647bf39
chore(deps-dev): bump @babel/plugin-transform-runtime
dependabot-preview[bot] Mar 1, 2021
a8a431b
chore(deps-dev): bump @babel/register from 7.12.10 to 7.13.8
dependabot-preview[bot] Mar 1, 2021
a1a6b3f
chore(deps-dev): bump @babel/preset-typescript from 7.12.13 to 7.13.0
dependabot-preview[bot] Mar 1, 2021
0209f20
chore(deps-dev): bump ts-jest from 26.5.1 to 26.5.2
dependabot-preview[bot] Mar 1, 2021
ecc4c63
chore(deps-dev): bump typescript from 4.1.3 to 4.2.2
dependabot-preview[bot] Mar 1, 2021
eb5e293
chore(deps-dev): bump @babel/core from 7.12.10 to 7.13.8
dependabot-preview[bot] Mar 1, 2021
440aed4
test: dependabot, I'll find you someday
hasparus Mar 1, 2021
8e4465d
chore(deps-dev): bump @babel/preset-env from 7.12.17 to 7.13.8
dependabot-preview[bot] Mar 1, 2021
ca00080
chore(deps): bump prism-react-renderer from 1.1.1 to 1.2.0
dependabot-preview[bot] Feb 22, 2021
4b4e8f5
Revert "chore(deps): bump prism-react-renderer from 1.1.1 to 1.2.0"
hasparus Mar 1, 2021
93c4b4e
chore: install auto
hasparus Mar 1, 2021
b87afef
docs: add all-contributors
hasparus Mar 1, 2021
3f31903
docs: add @jxnblk as a contributor
hasparus Mar 1, 2021
9dc7aab
docs: add contributors
hasparus Mar 1, 2021
b1add6a
chore: add all-contributors:add script
hasparus Mar 1, 2021
2bb3803
chore: add @auto-it/all-contributors plugin
hasparus Mar 1, 2021
f554845
chore: add @auto-it/conventional-commits plugin
hasparus Mar 1, 2021
b49c220
chore: add @auto-it/first-time-contributor plugin
hasparus Mar 1, 2021
1276706
chore: add @auto-it/released plugin
hasparus Mar 1, 2021
92c39d3
chore: configure auto prerelease branches
hasparus Mar 1, 2021
893b7c7
chore: publish with deps on exact versions
hasparus Mar 1, 2021
fef395e
chore: add verifyAccess: false to omit 2FA on CI
hasparus Mar 1, 2021
a6a0b61
ci: run release job on GitHub Actions
hasparus Mar 1, 2021
d589b9c
chore: stop running prepare before relase — lerna does automatically
hasparus Mar 1, 2021
714603f
ci: use bahmutov/npm-install instead of that arcane yarn cache incant…
hasparus Mar 1, 2021
328c08b
ci: publish only with release label
hasparus Mar 1, 2021
7209ec0
ci(actions): do not run CI on PR reopen twice
hasparus Mar 1, 2021
5404acd
chore: add turnstyle
hasparus Mar 1, 2021
2e92f56
ci(release): release only on internal PRs (bcs the secrets are present)
hasparus Mar 1, 2021
1dace0d
chore: stop requiring frozen-lockfiles
hasparus Mar 1, 2021
1fe2ed1
chore(deps-dev): bump @babel/plugin-transform-runtime
dependabot-preview[bot] Mar 8, 2021
e34e6ad
chore(deps-dev): bump @emotion/jest from 11.2.0 to 11.2.1
dependabot-preview[bot] Mar 8, 2021
3425c00
chore(deps): [security] bump elliptic from 6.5.3 to 6.5.4
dependabot-preview[bot] Mar 8, 2021
e510649
chore(deps-dev): bump @babel/runtime from 7.12.13 to 7.13.9
dependabot-preview[bot] Mar 8, 2021
a67d3ae
chore(deps): bump elliptic from 6.5.3 to 6.5.4 in /examples/next
dependabot[bot] Mar 8, 2021
2075825
chore(deps-dev): bump @types/react from 17.0.2 to 17.0.3
dependabot-preview[bot] Mar 8, 2021
496f3c0
chore(deps): bump @testing-library/react from 11.2.3 to 11.2.5
dependabot-preview[bot] Mar 8, 2021
d85677b
chore(deps): bump csstype from 3.0.6 to 3.0.7
dependabot-preview[bot] Mar 8, 2021
d4a0a8c
chore(deps-dev): bump typescript from 4.2.2 to 4.2.3
dependabot-preview[bot] Mar 15, 2021
1e4f880
chore(deps-dev): bump @babel/plugin-transform-runtime
dependabot-preview[bot] Mar 15, 2021
fc816e8
chore(deps-dev): bump @babel/preset-env from 7.13.8 to 7.13.10
dependabot-preview[bot] Mar 15, 2021
a94363d
chore(deps-dev): bump husky from 5.1.0 to 5.1.3
dependabot-preview[bot] Mar 15, 2021
6ccf4a2
chore(deps-dev): bump @babel/core from 7.13.8 to 7.13.10
dependabot-preview[bot] Mar 15, 2021
65824f7
chore(deps): bump gatsby-plugin-mdx from 1.10.0 to 2.0.1
dependabot-preview[bot] Mar 15, 2021
3c2d250
fix(components): remove hardcoded Paragraph style
flo-sch Mar 8, 2021
5296afc
fix(components): restore Paragraph margin reset
flo-sch Mar 17, 2021
8a7e411
chore: deprecate mdx/Styled (#1461)
atanasster Mar 19, 2021
7a9fddd
fix: custom vars to be created even if no color modes
atanasster Dec 10, 2020
7f2b0f8
chore: update changelog
atanasster Jan 27, 2021
55dab22
chore: bump Gatsby peer dep
hasparus Mar 19, 2021
0df2cf6
v0.6.0-alpha.8
hasparus Mar 19, 2021
67e112c
refactor: name default exports
hasparus Mar 20, 2021
03b06e2
chore: set ESLint preset react-app in docs
hasparus Mar 20, 2021
00690b7
fix(docs): normalize live code spacing
hasparus Mar 20, 2021
80c7cc6
fix(docs): Add /styled page to make old links work
hasparus Mar 20, 2021
a0c4977
Merge branch 'develop' into css-vars-remove-defaults
hasparus Mar 20, 2021
3d8c7ff
feat: rename __original.colors to rawColors and make it public
hasparus Mar 20, 2021
8433b4e
feat(types): rename ContextValue to ThemeUIContextValue
hasparus Mar 20, 2021
c0f6551
Merge pull request #1453 from atanasster/css-vars-remove-defaults
hasparus Mar 20, 2021
d52e4ec
chore: write migration notes for 0.6
hasparus Mar 20, 2021
2bbfea7
Revert "chore: bump Gatsby peer dep"
hasparus Mar 20, 2021
79a678c
chore: bump Gatsby peer dep again
hasparus Mar 20, 2021
00cd0e6
refactor(docs): format themed.mdx, add title to styled.mdx
hasparus Mar 20, 2021
ed94681
fix(color-modes): read correct color mode name
hasparus Mar 20, 2021
a368159
fix(editor): make editor demo work (broken for a longer time)
hasparus Mar 22, 2021
7f8f796
Merge branch 'develop' into chores
hasparus Mar 22, 2021
6652bb1
chore: we must run prepare before publish, because Lerna does not bui…
hasparus Mar 22, 2021
9c3c7db
fix(editor): fix colors logic
hasparus Mar 22, 2021
469dc4a
feat(core): export internal base provider
hasparus Mar 22, 2021
6b11630
fix(color-modes): stop mutating theme
hasparus Mar 22, 2021
c1a2c09
Merge pull request #1544 from system-ui/chores
hasparus Mar 22, 2021
ac304c7
chore: make contributors table narrower
hasparus Mar 22, 2021
4b34c2c
Merge branch '0.6-stable' into develop
hasparus Mar 22, 2021
15c7a0b
chore: describe color mode flash fix in changelog
hasparus Mar 22, 2021
7e3afbb
refactor(theme-provider): remove unused import
hasparus Mar 22, 2021
ac60158
chore: write more on migrating
hasparus Mar 22, 2021
949cbcf
chore(docs): remove comma
hasparus Mar 22, 2021
0c6d050
Merge branch 'develop' into stable
hasparus Mar 22, 2021
d8b715d
chore: update snapshots
hasparus Mar 22, 2021
8ff0379
docs: change version in readme
hasparus Mar 22, 2021
6f37cdd
v0.6.0
hasparus Mar 22, 2021
1808020
Update dependency: @theme-ui/css@0.6.0
hasparus Mar 23, 2021
07ca809
Update styled.mdx
mlabate Mar 23, 2021
0435ddf
Merge pull request #1597 from mlabate/patch-1
hasparus Mar 23, 2021
cb9f6c2
fix(theme-ui): export jsx as createElement
ethanwu10 Mar 28, 2021
15f511c
Merge pull request #1604 from ethanwu10/jsx-runtime-createelement
hasparus Mar 29, 2021
9a7cc8f
chore(deps-dev): bump @auto-it/all-contributors from 10.16.8 to 10.23.0
dependabot-preview[bot] Mar 29, 2021
e5e3b8a
chore(deps-dev): bump @auto-it/first-time-contributor
dependabot-preview[bot] Mar 29, 2021
8797eae
chore(deps-dev): bump auto from 10.16.8 to 10.23.0
dependabot-preview[bot] Mar 29, 2021
04199fd
chore(deps): bump type-fest from 0.21.1 to 1.0.1
dependabot-preview[bot] Mar 29, 2021
f804ff0
chore(deps-dev): bump @babel/preset-react from 7.12.13 to 7.13.13
dependabot-preview[bot] Mar 29, 2021
e77cbc9
chore(deps-dev): bump postcss from 8.2.6 to 8.2.8
dependabot-preview[bot] Mar 29, 2021
9823728
chore(deps-dev): bump @babel/preset-env from 7.13.10 to 7.13.12
dependabot-preview[bot] Mar 29, 2021
67a9a2a
chore(deps): bump gatsby-plugin-mdx from 2.0.1 to 2.1.0
dependabot-preview[bot] Mar 29, 2021
3e6d0ff
chore(deps-dev): bump @types/jest from 26.0.20 to 26.0.22
dependabot-preview[bot] Mar 29, 2021
a3acdfe
chore(deps): bump y18n from 4.0.0 to 4.0.1 in /examples/next
dependabot[bot] Mar 29, 2021
8e14632
chore(deps): [security] bump y18n from 4.0.0 to 4.0.1
dependabot-preview[bot] Mar 29, 2021
c4dc09f
chore: skip release when turnstyle timeouts and ondependabot PRs
hasparus Mar 29, 2021
cdb525b
chore: remove onlyPublishWithReleaseLabel
hasparus Mar 29, 2021
91e0c00
Merge pull request #1617 from system-ui/dependabot/npm_and_yarn/y18n-…
hasparus Mar 29, 2021
29aa066
Merge pull request #1615 from system-ui/dependabot/npm_and_yarn/type-…
hasparus Mar 29, 2021
f533cd2
Merge pull request #1616 from system-ui/dependabot/npm_and_yarn/examp…
hasparus Mar 29, 2021
edd77b1
Merge pull request #1610 from system-ui/dependabot/npm_and_yarn/auto-…
hasparus Mar 29, 2021
6facadf
Merge pull request #1608 from system-ui/dependabot/npm_and_yarn/auto-…
hasparus Mar 29, 2021
84dde10
Merge pull request #1607 from system-ui/dependabot/npm_and_yarn/auto-…
hasparus Mar 29, 2021
5df45f2
chore: remove prerelease version from readme
hasparus Mar 29, 2021
4368922
docs: update changelog
hasparus Mar 30, 2021
0244f49
ci(actions): add id to turnstyle step
hasparus Mar 30, 2021
c08b70f
fix(core): export jsx as createElement
hasparus Mar 30, 2021
e1995d8
chore: add -v flag to release script
hasparus Mar 30, 2021
8aa6402
v0.6.1
hasparus Mar 30, 2021
17d24e3
Update package.json
hasparus Mar 30, 2021
02d957f
fix(match-media): fix peer deps
hasparus Mar 30, 2021
236b788
chore(deps-dev): bump @babel/core from 7.13.10 to 7.13.14
dependabot-preview[bot] Apr 5, 2021
95c7581
chore(deps): bump @types/styled-system from 5.1.10 to 5.1.11
dependabot-preview[bot] Apr 5, 2021
b1935c2
Merge pull request #1626 from system-ui/dependabot/npm_and_yarn/babel…
hasparus Apr 5, 2021
af857f9
Merge pull request #1627 from system-ui/dependabot/npm_and_yarn/types…
hasparus Apr 5, 2021
c68ed05
chore(deps-dev): bump @babel/cli from 7.12.17 to 7.13.14
dependabot-preview[bot] Apr 5, 2021
5313f28
chore(deps): bump @emotion/react from 11.1.1 to 11.1.5
dependabot-preview[bot] Apr 5, 2021
4d1562e
chore(deps-dev): bump postcss from 8.2.8 to 8.2.9
dependabot-preview[bot] Apr 5, 2021
71a149c
ci(actions): echo commit message for debugging
hasparus Apr 5, 2021
47f2ba3
ci(actions): change workflow.yml
hasparus Apr 5, 2021
f977c1a
fix(css): borderTopWidth accepts number
Apr 2, 2021
6446f08
Merge branch 'develop' into preconstruct-2
hasparus Apr 5, 2021
1a8b410
ci(actions): change ci.yml
hasparus Apr 5, 2021
35badff
ci(actions): wrap event in toJSON
hasparus Apr 5, 2021
e237378
chore: fix theme-ui/css dependency version
hasparus Apr 5, 2021
7652cc0
chore: add missing dependency
hasparus Apr 5, 2021
ac62a1c
chore: rename deprecated tsConfig option
hasparus Apr 5, 2021
a534b10
test: fix test types
hasparus Apr 5, 2021
9579119
chore(typography): Move declarations.d.ts out of test dir
hasparus Apr 5, 2021
1a59d80
ci(actions): change workflow
hasparus Apr 5, 2021
7aa921b
refactor(editor): fix type errors
hasparus Apr 5, 2021
adcb214
chore(deps-dev): bump @babel/runtime from 7.13.9 to 7.13.10
dependabot-preview[bot] Apr 5, 2021
de123b0
chore(editor): annotate a type that should be inferred :(
hasparus Apr 5, 2021
1051c62
Merge branch 'develop' into preconstruct-2
hasparus Apr 5, 2021
6304630
ci(scripts): remove all notion of prepare script
hasparus Apr 5, 2021
f29780f
ci(actions): skip release job when PR startsWith "chore"
hasparus Apr 5, 2021
6c37b10
chore(deps-dev): bump @auto-it/first-time-contributor
dependabot-preview[bot] Apr 5, 2021
3f609d5
chore(deps-dev): bump @auto-it/all-contributors from 10.23.0 to 10.24.1
dependabot-preview[bot] Apr 5, 2021
ba0219f
chore(ci): stop logging whole github event
hasparus Apr 5, 2021
3d0dfed
Merge pull request #1423 from system-ui/preconstruct-2
hasparus Apr 5, 2021
ef8212b
Update CHANGELOG.md [skip ci]
hasparus Apr 5, 2021
529c482
chore: add build:docs script
hasparus Apr 5, 2021
b191f4e
refactor(editor): remove console.log
hasparus Apr 5, 2021
a3fafe3
chore(docs): build packages before building docs
hasparus Apr 5, 2021
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
1,049 changes: 1,049 additions & 0 deletions .all-contributorsrc

Large diffs are not rendered by default.

60 changes: 48 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CI

on:
pull_request:
types: [opened, synchronize]
push:
branches:
- develop
Expand All @@ -10,22 +11,57 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: 14.x

- uses: bahmutov/npm-install@v1
with:
# By default, bahmutov/npm-install uses --frozen-lockfile
install-command: yarn

- name: Run tests and collect coverage
run: yarn test --coverage

- name: Typecheck
run: yarn typecheck
release:
runs-on: ubuntu-latest
needs: [build]
if: >
!contains(github.event.head_commit.message, 'ci skip') &&
!contains(github.event.head_commit.message, 'skip ci') &&
!startsWith(github.event.head_commit.message, 'chore') &&
!startsWith(github.event.pull_request.title, 'chore') && (
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name == github.repository
)
steps:
- uses: actions/checkout@v2

- name: Prepare repository
run: git fetch --unshallow --tags

- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Get yarn cache directory path
id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"
node-version: 14.x

- uses: bahmutov/npm-install@v1

- uses: actions/cache@v1
- name: Queue in release turnstile
id: turnstyle
continue-on-error: true
uses: softprops/turnstyle@v1
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn
- run: yarn test --coverage
- run: yarn typecheck
abort-after-seconds: 600

- name: Create release
if: steps.turnstyle.outcome == 'success'
env:
GITHUB_TOKEN: ${{ secrets.AUTO_RELEASE_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN }}
run: yarn release
30 changes: 30 additions & 0 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
if [ -z "$husky_skip_init" ]; then
debug () {
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
}

readonly hook_name="$(basename "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
debug "HUSKY env variable is set to 0, skipping hook"
exit 0
fi

if [ -f ~/.huskyrc ]; then
debug "sourcing ~/.huskyrc"
. ~/.huskyrc
fi

export readonly husky_skip_init=1
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
exit $exitCode
fi

exit 0
fi
Loading