mirror of
https://github.com/rive-app/rive-react.git
synced 2026-03-13 08:22:30 +08:00
Compare commits
1 Commits
v3.0.36
...
zp/manual-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74506804c9 |
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
@@ -1,13 +1,9 @@
|
||||
name: Publish to NPM
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
determine_version:
|
||||
name: Determine the next build version
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
version: ${{ steps.echo_version.outputs.version }}
|
||||
@@ -31,9 +27,8 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
|
||||
- id: echo_version
|
||||
run: echo "::set-output name=version::$(cat ./RELEASE_VERSION)"
|
||||
|
||||
|
||||
merge_job:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine_version]
|
||||
steps:
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// @refresh reset
|
||||
// Need the comment above to hard-refresh state in NextJS apps otherwise
|
||||
// HMR will try to preserve the stale Rive instance
|
||||
import React, {
|
||||
useCallback,
|
||||
useEffect,
|
||||
|
||||
Reference in New Issue
Block a user