mirror of
https://github.com/cookpete/react-player.git
synced 2026-03-29 15:07:04 +00:00
* feat!: enable Suspense by default (#1775) BREAKING CHANGES: enable Suspense by default, remove environment checks * feat!: try out ESM only on canary (#1826) BREAKING CHANGES: remove CJS and IIFE * fix: type issue * fix: improve types resolution (#1827) * fix: Move exports.key.default to last position (#1828) * feat: TS, function comps, media-elements * feat: add config prop support * test: update tests * fix: upgrade Mux player * fix: re-render issue, remove default wrapper, update App to use function components, update responsive logic and docs * test: fix tests * docs: add more docs and migration docs * fix: allow video without src for source & track * example: fix error callback * fix: rename url to src * docs: add more migrating changes --------- Co-authored-by: Karl Horky <karl.horky@gmail.com>
67 lines
2.0 KiB
YAML
67 lines
2.0 KiB
YAML
name: CD
|
|
|
|
concurrency: production
|
|
|
|
on:
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
type: choice
|
|
required: true
|
|
description: Version
|
|
options:
|
|
- conventional
|
|
- patch
|
|
- minor
|
|
- major
|
|
- prerelease
|
|
- from-package
|
|
- from-git
|
|
prerelease:
|
|
type: choice
|
|
description: Pre-release
|
|
options:
|
|
-
|
|
- canary
|
|
- beta
|
|
dryrun:
|
|
description: 'Dry-run'
|
|
type: boolean
|
|
|
|
run-name: Deploy ${{ inputs.version }} ${{ inputs.dryrun && '--dry-run' || '' }} ${{ inputs.prerelease && format('--prerelease {0}', inputs.prerelease) || '' }}
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
environment: production
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0 # Fetch all history for all tags and branches
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
# this line is required for the setup-node action to be able to run the npm publish below.
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- uses: fregante/setup-git-user@v1
|
|
- run: npm ci
|
|
- run: npm run lint
|
|
- run: npm run test:coverage
|
|
- run: npm run build
|
|
- run: npm run build:demo
|
|
- run: npx --yes wet-run@1.0.1 release ${{ inputs.version }} ${{ inputs.dryrun && '--dry-run' || '' }} ${{ inputs.prerelease && format('--prerelease {0}', inputs.prerelease) || '' }} --provenance --github-release --verbose
|
|
- name: Get NPM version
|
|
id: npm-version
|
|
uses: martinbeentjes/npm-get-version-action@v1.3.1
|
|
- name: Released ${{ steps.npm-version.outputs.current-version}} ✨
|
|
run: echo ${{ steps.npm-version.outputs.current-version}}
|