name: Semantic Release Action description: "Runs `semantic-release`. Respects .releaserc.js in your repo. Exports version variables for you to use in subsequent actions." inputs: branches: description: "The branches on which releases should happen. https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches" required: false extends: description: "String or array of modules or file paths containing a shareable configuration. https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#extends" required: false plugins: description: "Define the list of plugins to use. Plugins will run in series, in the order defined, for each steps if they implement it. https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#plugins" required: false additional-packages: description: "Define a list of additional plugins or shareable configurations (official or community) to install. Use this if you 1) use any plugins other than commit-analyzer, release-notes-generator, github, or npm, which are already installed along with semantic-release or 2) want to extend from a shareable configuration. https://semantic-release.gitbook.io/semantic-release/extending/plugins-list" required: false dry-run: description: "The objective of the dry-run mode is to get a preview of the pending release. Dry-run mode skips the following steps: prepare, publish, success and fail. https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#dryrun" required: false repository-url: description: "The git repository URL. https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#repositoryurl" required: false tag-format: description: "The Git tag format used by semantic-release to identify releases. https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#tagformat" required: false working-directory: description: The working directory to use for all semantic-release actions. required: false branch: description: "DEPRECATED. Will continue to be supported for v1. Use `branches` instead. Previously used in semantic-release v15 to set a single branch on which releases should happen. https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches" required: false runs: using: composite steps: - uses: "codfish/semantic-release-action@8f9a58f2acdc190c356f79159b5de2548cdb63cd" with: branches: "${{ inputs.branches }}" extends: "${{ inputs.extends }}" plugins: "${{ inputs.plugins }}" additional-packages: "${{ inputs.additional-packages }}" dry-run: "${{ inputs.dry-run }}" repository-url: "${{ inputs.repository-url }}" tag-format: "${{ inputs.tag-format }}" working-directory: "${{ inputs.working-directory }}" branch: "${{ inputs.branch }}" - uses: "oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6" if: always() - name: Cleanup Action if: always() shell: bash run: bun run $GITHUB_ACTION_PATH/index.js