fix(ci): fix backslash-bang syntax error in workflow
This commit is contained in:
parent
63455e2109
commit
9f9243bb4a
1 changed files with 3 additions and 3 deletions
|
|
@ -51,12 +51,12 @@ jobs:
|
|||
SHOULD_PUBLISH=$(node -p "require('./package.json')?._?.publish === true")
|
||||
REGISTRY=$(node -p "require('./package.json')?._?.registry || 'none'")
|
||||
|
||||
if [ "$REGISTRY" \!= "forgejo" ]; then
|
||||
if [ "$REGISTRY" != "forgejo" ]; then
|
||||
echo "Skipping: registry is not forgejo"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$SHOULD_PUBLISH" \!= "true" ]; then
|
||||
if [ "$SHOULD_PUBLISH" != "true" ]; then
|
||||
echo "Skipping: publish not enabled"
|
||||
exit 0
|
||||
fi
|
||||
|
|
@ -69,7 +69,7 @@ jobs:
|
|||
const fs = require('fs');
|
||||
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
|
||||
const transform = (deps) => {
|
||||
if (\!deps) return deps;
|
||||
if (!deps) return deps;
|
||||
for (const [n, v] of Object.entries(deps)) {
|
||||
if (v.startsWith('workspace:') || v.startsWith('file:')) deps[n] = '*';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue