Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
22 changes: 17 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,27 @@
"env": { "browser": true, "es2020": true },
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"prettier"
],
"parserOptions": { "ecmaVersion": "latest", "sourceType": "module" },
"settings": { "react": { "version": "18.2" }, "jest": { "version": 26 } },
"plugins": ["react-refresh"],
"settings": { "react": { "version": "detect" }, "jest": { "version": 26 } },
"plugins": ["@typescript-eslint", "react-refresh"],
"parser": "@typescript-eslint/parser",
"rules": {
"react-refresh/only-export-components": "off"
}
"react-refresh/only-export-components": 0,
"react/react-in-jsx-scope": 0,
"@typescript-eslint/no-non-null-assertion": 0
},
"ignorePatterns": [
"node_modules/",
"dist/",
"**/*.{css, scss}",
".eslintrc.*",
"dist/",
".stylelintrc.js",
"vite.config.ts"
]
}
40 changes: 31 additions & 9 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,48 @@
name: Publish to NPM and Github Packages
name: Release

on:
push:
branches:
- main
paths:
- src/**
- types/**

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
build:
name: Publish
release:
permissions:
contents: write # to create release (changesets/action)
issues: write # to post issue comments (changesets/action)
pull-requests: write # to create pull request (changesets/action)

name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: "https://registry.npmjs.org"

- run: npm i
- run: npm run build
- run: npm publish --access public
- name: Install Dependencies
run: npm i

- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: npm run version
publish: npm run release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.19.0
24.13.0
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @wethegit/react-autoplay-video

## 2.0.0

### Major Changes

- 4ae390f: Upgrades to React 19, TypeScript, and CSS modules.

### Breaking changes:

- Class names are now CSS module hashes.
- Video element no longer exposes a ref.
- Props are now spread onto the outermost div container.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading