This commit is contained in:
Dan Finch 2026-05-02 03:55:56 +02:00
parent 00bc571efa
commit 5acbf66e6b
2 changed files with 6 additions and 8 deletions

View file

@ -23,16 +23,11 @@ runs:
shell: bash shell: bash
run: bun install --frozen-lockfile run: bun install --frozen-lockfile
- name: Verify NPM_TOKEN - name: Configure npm auth
shell: bash shell: bash
env: env:
NPM_TOKEN: ${{ inputs.npm-token }} NPM_TOKEN: ${{ inputs.npm-token }}
run: | run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
if [ -z "$NPM_TOKEN" ]; then
echo "::error::NPM_TOKEN is empty or not set"
exit 1
fi
echo "NPM_TOKEN is set (${#NPM_TOKEN} chars)"
- name: Run multi-semantic-release - name: Run multi-semantic-release
shell: bash shell: bash

View file

@ -7,7 +7,10 @@ module.exports = {
plugins: [ plugins: [
"@semantic-release/commit-analyzer", "@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator", "@semantic-release/release-notes-generator",
["@semantic-release/exec", { prepareCmd: "npm pkg set version=${nextRelease.version}" }], ["@semantic-release/exec", {
prepareCmd: "npm pkg set version=${nextRelease.version}",
publishCmd: "npm publish --access public",
}],
"@markwylde/semantic-release-gitea", "@markwylde/semantic-release-gitea",
], ],
}; };