Skip to content

Commit

Permalink
chore: Mirror publishing to rebranded package name
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Jan 1, 2024
1 parent 63f45f1 commit 15b1564
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Mirror to nuqs
run: ./packages/next-usequerystate/scripts/mirror.sh
working-directory: packages/next-usequerystate
continue-on-error: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
16 changes: 16 additions & 0 deletions packages/next-usequerystate/scripts/mirror.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -e

# Place ourselves in the package directory
cd "$(dirname "$0")/.."

# Login to the npm registry
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc

# Rename & publish the package
pnpm pkg set name=nuqs
pnpm publish

# Cleanup
rm -f .npmrc

0 comments on commit 15b1564

Please sign in to comment.