Skip to content

Commit d86a841

Browse files
committed
Publish to NPM
1 parent 2d2666a commit d86a841

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/publish-to-npm.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish to NPM
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
stack: [react, vue]
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- name: Install dependencies, build, and publish
17+
run: |
18+
cd ${{ matrix.stack }}
19+
npm ci
20+
npm run build
21+
npm pack
22+
npm publish --access public
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

src/ModalServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function boot(): void
3535

3636
// Register a callback to reset the BladeRouteGenerator state before
3737
// rendering the Base Route/URL with the Modal component.
38-
Modal::beforeBaseRerender(function () {
38+
Modal::beforeBaseRerender(function (): void {
3939
if (class_exists(BladeRouteGenerator::class)) {
4040
BladeRouteGenerator::$generated = false;
4141
}

0 commit comments

Comments
 (0)