File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Publish to npm
33on :
44 release :
55 types : [published]
6+ workflow_dispatch :
67
78permissions :
89 contents : read
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
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}`);
You can’t perform that action at this time.
0 commit comments