Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
991ea2ca
Commit
991ea2ca
authored
Jan 26, 2026
by
vercel-release-bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add workflow to fix canary dist tag
parent
b3f77636
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
fix-canary-dist-tag.yml
.github/workflows/fix-canary-dist-tag.yml
+61
-0
No files found.
.github/workflows/fix-canary-dist-tag.yml
0 → 100644
View file @
991ea2ca
name
:
Fix Canary Dist-Tag
on
:
push
:
branches
:
-
12-03-add_deprecation_workflow
workflow_dispatch
:
inputs
:
dry_run
:
description
:
'
Dry
run
(log
commands
without
executing)'
required
:
true
type
:
boolean
default
:
true
version
:
description
:
'
Version
to
point
canary
tag
to'
required
:
true
type
:
string
default
:
'
16.2.0-canary.8'
jobs
:
fix-dist-tag
:
if
:
github.repository_owner == 'vercel'
runs-on
:
ubuntu-latest
steps
:
-
name
:
Setup Node.js
uses
:
actions/setup-node@v4
with
:
node-version
:
20
registry-url
:
'
https://registry.npmjs.org'
-
name
:
Fix canary dist-tag
shell
:
bash
env
:
NODE_AUTH_TOKEN
:
${{ secrets.NPM_TOKEN_ELEVATED }}
DRY_RUN
:
false
TARGET_VERSION
:
${{ inputs.version || '16.2.0-canary.8' }}
run
:
|
echo "=== Dist-Tag Fix Summary ==="
echo "Target version: $TARGET_VERSION"
echo "Dry run: $DRY_RUN"
echo ""
# Show current canary tag
echo "Current canary tag points to:"
npm dist-tag ls next | grep canary || echo "Could not fetch current tag"
echo ""
if [ "$DRY_RUN" = "true" ]; then
echo "[DRY RUN] Would run: npm dist-tag add next@$TARGET_VERSION canary"
else
echo "Updating canary dist-tag to next@$TARGET_VERSION..."
if npm dist-tag add "next@$TARGET_VERSION" canary 2>&1; then
echo "✓ Successfully updated canary tag to next@$TARGET_VERSION"
echo ""
echo "New canary tag points to:"
npm dist-tag ls next | grep canary
else
echo "✗ Failed to update canary tag"
exit 1
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment