@forge-for-gitea/semantic-release-gitea
v1.2.0
Published
Semantic Release plugin for Gitea
Downloads
428
Readme
Semantic Release plugin for Gitea
Developing
Creating sandbox
NOTE: For development, you will need to create a sandbox for convenient development and debugging of the written code. In your Gitea instance, create a repository and obtain a token to access the repository (with read and write permissions).
In project directory execute
NOTE: Executing this command will create a symlink, allowing you to use the package in the sandbox.
npm linkIn sandbox directory execute
git init && git config --local credential.helper 'cache --timeout=3600' && git branch -m maingit remote add origin <url>git pull origin maincat << EOF > package.json
{
"devDependencies": {
"semantic-release": "^24.2.8",
"@forge-for-gitea/semantic-release-gitea": "^1.2"
}
}
EOF npm i \
&& npm link @forge-for-gitea/semantic-release-giteacat << EOF > .releaserc.yaml
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@forge-for-gitea/semantic-release-gitea"
EOFcat << EOF > .env
GITEA_TOKEN=" -- CHANGE ME -- "
GITEA_URL="https://gitea-instance.example.com"
EOFrunning:
npx semantic-release --dry-run --debug