Skip to content

Commit

Permalink
Manually set registry configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
leroykorterink committed Feb 23, 2024
1 parent 0fb41bd commit 55ca04d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/bump-version-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build
env:
GSAP_TOKEN: ${{ secrets.GSAP_TOKEN }}
Expand All @@ -27,6 +26,8 @@ jobs:
npm ci
npm run build
- name: Publish
run: npm publish --verbose
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion src/gsap/hooks/useAnimation/useAnimation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The callback accepts a `gsap.core.Animation` instance as a return type. You can
(`gsap.to`, `gsap.from`, `gsap.fromTo`) and `gsap.timelines` to create an animation.

```tsx
import { useAnimation } from '@mediamonks/react-animation';
import { useAnimation } from '@mediamonks/react-kit';
import gsap from 'gsap';

function Component(): null {
Expand Down
2 changes: 1 addition & 1 deletion src/gsap/hooks/useExposeAnimation/useExposeAnimation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const UseExposeAnimation = (): ReactElement => {
## Using a forward ref

```tsx
import { ensuredForwardRef } from '@mediamonks/react-hooks';
import { ensuredForwardRef } from '@mediamonks/react-kit';

const UseExposeAnimationForwardRef = ensuredForwardRef<HTMLDivElement, unknown>(
(_, ref): ReactElement => {
Expand Down

0 comments on commit 55ca04d

Please sign in to comment.