This is a fork of
cycjimmy/semantic-release-action
with fixed semantic-release
version and custom semantic-release
config to
allow publishing to other registries.
The semantic-release/npm
plugin has no good way of publishing to custom registries,
without relying on package.json
publishConfig
values. Changing the package
depending on registry makes it impossible to cross-publish
By using npm publish
directly, this action works around these limitations of
semantic-release.
This action can also be used with non published packages to do github release management.
See action.yml for input/outputs.
steps:
- name: 🚀 Release
uses: tradeshift/actions-semantic-release@v1
id: semantic-release
with:
registry: https://npm.pkg.github.com/
npm_publish: true
working_directory: ./subdir
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: 🚀 Dry run release
uses: tradeshift/actions-semantic-release@v1
with:
registry: https://npm.pkg.github.com/
# Dry run and publish the changelog as a Check
dry_run: true
check_name: Semantic release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}