Skip to content
Merged
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- name: Install dependencies
run: npm install

- name: Build the project
run: npm run build

- name: Run the test suite
run: npm run test

Expand All @@ -52,6 +55,10 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- run: npm install

- name: Build the project
run: npm run build

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-lite-youtube-embed",
"version": "2.5.4",
"version": "2.5.5",
"description": "A private by default, faster and cleaner YouTube embed component for React applications",
"type": "module",
"main": "dist/index.js",
Expand Down Expand Up @@ -33,6 +33,15 @@
"YouTube Embed",
"Adaptive Loading"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.es.js",
"require": "./dist/index.js",
"default": "./dist/index.es.js"
},
"./dist/LiteYouTubeEmbed.css": "./dist/LiteYouTubeEmbed.css"
},
"peerDependencies": {
"react": ">=18.2.0",
"react-dom": ">=18.2.0"
Expand Down
Loading