Skip to content

Commit eaf847f

Browse files
author
jay
committed
fix: publish yml
1 parent 6fd92b6 commit eaf847f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Publish to npm
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
permissions:
89
contents: read
@@ -21,7 +22,7 @@ jobs:
2122
uses: actions/setup-node@v6
2223
with:
2324
node-version: '24'
24-
registry-url: 'https://npm.pkg.github.com'
25+
registry-url: 'https://registry.npmjs.org'
2526
package-manager-cache: false
2627

2728
- name: Install dependencies
@@ -35,7 +36,7 @@ jobs:
3536
import { readFileSync } from "node:fs";
3637
const { version } = JSON.parse(readFileSync("package.json", "utf8"));
3738
const tag = process.env.RELEASE_TAG;
38-
if (tag !== version && tag !== `v${version}`) {
39+
if (tag && tag !== version && tag !== `v${version}`) {
3940
throw new Error(`Release tag ${tag} does not match package version ${version}`);
4041
}
4142
console.log(`Publishing @deckflow/html-editor@${version}`);

0 commit comments

Comments
 (0)