Skip to content

Commit 3f90d5c

Browse files
committed
fix: npm-publish
1 parent 62990ea commit 3f90d5c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
name: Node.js Package
55

66
on:
7-
release:
8-
types: [created]
7+
workflow_dispatch:
8+
inputs:
9+
runs-on:
10+
description: Run job on self-hosted/ubuntu-latest
11+
required: true
12+
default: self-hosted
913

1014
jobs:
1115
build:
12-
runs-on: ubuntu-latest
16+
runs-on: ${{ github.event.inputs.runs-on }}
1317
steps:
1418
- uses: actions/checkout@v4
1519
- uses: actions/setup-node@v4
@@ -19,7 +23,7 @@ jobs:
1923

2024
publish-gpr:
2125
needs: build
22-
runs-on: ubuntu-latest
26+
runs-on: ${{ github.event.inputs.runs-on }}
2327
permissions:
2428
contents: read
2529
packages: write

0 commit comments

Comments
 (0)