This package is published to both npm and GitHub Package Registry. Follow these steps to ensure smooth publishing:
For the GitHub Actions workflow to publish to both registries, you need to set up two secrets:
NPM_TOKEN: An access token for npm registryGITHUB_TOKEN: This is automatically provided by GitHub Actions
- Go to npmjs.com and log in to your account
- Click on your profile picture and select "Access Tokens"
- Click "Generate New Token" and select "Publish"
- Copy the generated token
- Go to your repository on GitHub
- Click on "Settings" > "Secrets and variables" > "Actions"
- Click "New repository secret"
- Add a secret named
NPM_TOKENwith the value being your npm token
- Create a new release on GitHub
- The GitHub Actions workflow will automatically:
- Publish to npm registry first
- Then publish to GitHub Package Registry
Check both registries to confirm successful publication:
- npm: https://www.npmjs.com/package/migrate-catalog
- GitHub: https://github.com/ImBIOS/migrate-catalog/packages
- If publishing to npm fails, check if your npm token has expired
- If publishing to GitHub fails, ensure the package.json has the correct GitHub registry URL in publishConfig
- Check the GitHub Actions logs for detailed error messages