Skip to content

Commit c9ab647

Browse files
authored
Aiinfo diffcache (#104)
* add changelog to output * add clearCache utility * update cache * add writeChangelog util * ignore package.json in biome lint * @instructure.ai/[email protected] * fix lint issues * @instructure.ai/[email protected] * use vite-node/loader * [email protected] * use loader as an export * [email protected] * use custom loader * [email protected] * quote loader * use correct path * [email protected] * proper quotes * use nextLoad * use register instead of experimentalLoader * --no-git-checks b/c we're building here!
1 parent 1acf3a1 commit c9ab647

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release-package.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
npm install -g pnpm
5858
pnpm install --frozen-lockfile
5959
60-
# NOW enable vite-node loader so any .ts/.mts imports work everywhere below
61-
export NODE_OPTIONS="--loader=${{ github.workspace }}/scripts/loader.mjs"
60+
# NOW enable vite-node loader using the new register() API
61+
export NODE_OPTIONS="--import='data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"${{ github.workspace }}/scripts/loader.mjs\", pathToFileURL(\"./\"));'"
6262
6363
# Build
6464
if [ "$PKG_NAME" = "shared-configs" ]; then
@@ -94,18 +94,18 @@ jobs:
9494
PRIVATE=$(jq -r '.private' "$JSON_PATH")
9595
if [ "$ACCESS_PUBLIC" = "public" ] && [ "$PRIVATE" != "true" ]; then
9696
echo "Publishing $PKG_NAME as public..."
97-
pnpm publish ./dist/*.tgz --access public
97+
pnpm publish ./dist/*.tgz --access public --no-git-checks
9898
elif [ "$PRIVATE" = "true" ]; then
9999
echo "Skipping publish for $PKG_NAME because it is marked private in package.json."
100100
elif [ -n "$ACCESS_PUBLIC" ] && [ "$ACCESS_PUBLIC" != "public" ]; then
101101
echo "Skipping publish for $PKG_NAME because publishConfig.access is set to '$ACCESS_PUBLIC' (not public)."
102102
else
103103
echo "Publishing $PKG_NAME without --access public..."
104-
pnpm publish ./dist/*.tgz
104+
pnpm publish ./dist/*.tgz --no-git-checks
105105
fi
106106
else
107107
echo "package.json not found for $PKG_NAME in packages or apps, publishing without access check."
108-
pnpm publish ./dist/*.tgz
108+
pnpm publish ./dist/*.tgz --no-git-checks
109109
fi
110110
fi
111111

0 commit comments

Comments
 (0)