Skip to content

Commit 4cbfd5f

Browse files
committed
fix: add namespace for package in publish workflow
1 parent 45a911d commit 4cbfd5f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/PublishMarketplace.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ on:
44
release:
55
types: [published]
66

7+
workflow_dispatch:
8+
inputs:
9+
package:
10+
description: "Package name to release (name in package.json)"
11+
required: true
712
jobs:
813
publish-new-version:
914
name: "Publish a new package version from GitHub release"
1015
runs-on: ubuntu-latest
1116
env:
12-
TAG: ${{ github.ref_name }}
17+
TAG: ${{ github.event_name == 'release' && github.ref_name || github.event.inputs.package }}
1318

1419
steps:
1520
- name: Check release tag
@@ -21,7 +26,7 @@ jobs:
2126
exit 1
2227
fi
2328
- name: "Set PACKAGE env var"
24-
run: echo "PACKAGE=${TAG%-v*}" >> $GITHUB_ENV
29+
run: echo "PACKAGE=@mendix/${TAG%-v*}" >> $GITHUB_ENV
2530
- name: Checkout
2631
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2732
with:

0 commit comments

Comments
 (0)