Skip to content

Commit 79bcccb

Browse files
committed
ci: test actions
1 parent 130a80f commit 79bcccb

File tree

9 files changed

+43
-5
lines changed

9 files changed

+43
-5
lines changed

.github/workflows/build-deploy-docs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,23 @@ name: Build docs
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
jobs:
77
build-and-deploy:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout 🛎️
1111
uses: actions/[email protected]
1212

13+
- name: Enable Corepack
14+
run: corepack enable
15+
16+
- name: Use Node.js 20.x
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20.x'
20+
cache: 'yarn'
21+
1322
- name: Install and build docs 🔧
1423
run: |
1524
yarn

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,23 @@ name: Publish to Npm
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
jobs:
77
publish:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout 🛎️
1111
uses: actions/[email protected]
1212

13+
- name: Enable Corepack
14+
run: corepack enable
15+
16+
- name: Use Node.js 20.x
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20.x'
20+
cache: 'yarn'
21+
1322
- name: Install 🔧
1423
run: yarn
1524

.storybook/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const preview: Preview = {
1313
options: {
1414
storySort: {
1515
order: [
16-
'Intro',
16+
'Introduction',
1717
'Examples',
1818
['Basic Transition', 'Fade Transition', ['Inline Styles']],
1919
'Components',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-transitioning",
3-
"version": "0.0.0",
3+
"version": "1.0.0",
44
"description": "React components for easily implementing basic CSS animations and transitions",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"prepare": "husky",
1818
"prepublishOnly": "yarn run lint && yarn run build",
19-
"lint": "eslint src && eslint examples",
19+
"lint": "eslint src && eslint stories",
2020
"watch": "tsup --watch",
2121
"build": "tsup --clean",
2222
"dev": "storybook dev -p 6006",

stories/examples/BasicTransition.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ Here’s how you can use the `Transition` component in your project:
2727
Check out the live demo below to see the `Transition` component in action:
2828

2929
<Canvas of={Stories.Default} />
30+
31+
## Source Code
32+
33+
The source code for this example is available on [GitHub](https://github.com/fakundo/react-transitioning/blob/main/stories/examples/BasicTransition.stories.tsx).

stories/examples/ConditionalRender.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ To use the `TransitionGroup` with conditionally rendered children in your projec
3737
Check out the live demo below to see the `TransitionGroup` in action with conditionally rendered children:
3838

3939
<Canvas of={Stories.Default} />
40+
41+
## Source Code
42+
43+
The source code for this example is available on [GitHub](https://github.com/fakundo/react-transitioning/blob/main/stories/examples/ConditionalRender.stories.tsx).

stories/examples/FadeTransitionClassNames.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ The example implements a fading transition effect using the `StyleTransition` co
4848
Check out the live demo below to see the `FadeTransition` in action:
4949

5050
<Canvas of={Stories.Default} />
51+
52+
## Source Code
53+
54+
The source code for this example is available on [GitHub](https://github.com/fakundo/react-transitioning/blob/main/stories/examples/FadeTransitionClassNames.stories.tsx).

stories/examples/FadeTransitionStyles.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ The example implements a fading transition effect using the `StyleTransition` co
4747
Check out the live demo below to see the `FadeTransition` in action:
4848

4949
<Canvas of={Stories.Default} />
50+
51+
## Source Code
52+
53+
The source code for this example is available on [GitHub](https://github.com/fakundo/react-transitioning/blob/main/stories/examples/FadeTransitionStyles.stories.tsx).

stories/examples/ItemList.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ To use the `TransitionGroup` in your project, you can follow the example below:
2727
Check out the live demo below to see the `TransitionGroup` in action:
2828

2929
<Canvas of={Stories.Default} />
30+
31+
## Source Code
32+
33+
The source code for this example is available on [GitHub](https://github.com/fakundo/react-transitioning/blob/main/stories/examples/ItemList.stories.tsx).

0 commit comments

Comments
 (0)