Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
id-token: write # Required for provenance
steps:
- uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
Expand Down Expand Up @@ -51,15 +51,15 @@ jobs:

PACKAGE_NAME=$(node -p "require('./package.json').name")
CURRENT_VERSION=$(node -p "require('./package.json').version")

echo "Checking if $PACKAGE_NAME@$CURRENT_VERSION is already published..."
NPM_VERSION=$(npm view $PACKAGE_NAME version 2>/dev/null || echo "")

if [ -z "$NPM_VERSION" ]; then
echo "Package $PACKAGE_NAME not found on NPM. Initial publication."
NPM_VERSION="0.0.0"
fi

if [ "$CURRENT_VERSION" != "$NPM_VERSION" ]; then
echo "New version detected: $CURRENT_VERSION (NPM has $NPM_VERSION). Publishing..."
npm publish --access public --provenance
Expand All @@ -75,18 +75,18 @@ jobs:
run: |
echo "Processing create-motionforge..."
bun install

PACKAGE_NAME=$(node -p "require('./package.json').name")
CURRENT_VERSION=$(node -p "require('./package.json').version")

echo "Checking if $PACKAGE_NAME@$CURRENT_VERSION is already published..."
NPM_VERSION=$(npm view $PACKAGE_NAME version 2>/dev/null || echo "")

if [ -z "$NPM_VERSION" ]; then
echo "Package $PACKAGE_NAME not found on NPM. Initial publication."
NPM_VERSION="0.0.0"
fi

if [ "$CURRENT_VERSION" != "$NPM_VERSION" ]; then
echo "New version detected: $CURRENT_VERSION (NPM has $NPM_VERSION). Publishing..."
npm publish --access public --provenance
Expand Down
12 changes: 12 additions & 0 deletions dev_server.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$ next dev -p 3000 2>&1 | tee dev.log
⨯ Failed to start server
Error: listen EADDRINUSE: address already in use :::3000
at <unknown> (Error: listen EADDRINUSE: address already in use :::3000)
at new Promise (<anonymous>) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '::',
port: 3000
}
[?25h
5 changes: 5 additions & 0 deletions packages/create-motionforge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"bin": {
"create-motionforge": "./bin/index.js"
},
"files": [
"bin",
"templates",
"README.md"
],
"type": "module",
"scripts": {
"start": "node ./bin/index.js"
Expand Down
Loading