1.0.5 • Published 3 years ago
@divlook/semantic-release-config v1.0.5
README
semantic-release shareable configuration for me
Plugins
이 shareable configuration은 다음 플러그인들을 사용합니다.
- @semantic-release/commit-analyzer
- @semantic-release/release-notes-generator
- @semantic-release/changelog
- @semantic-release/npm
- @semantic-release/git
Plugins for GitHub
process.env.GITHUB_TOKEN
이 감지되면 다음 플러그인이 활성화됩니다.
Plugins for GitLab
process.env.GITLAB_TOKEN
이 감지되면 다음 플러그인이 활성화됩니다.
Setup
npm install \
semantic-release \
@semantic-release/changelog \
@semantic-release/git \
conventional-changelog-conventionalcommits \
@divlook/semantic-release-config
# use gitlab
npm install @semantic-release/gitlab
Usage
create .releaserc.yml
extends: "@divlook/semantic-release-config"
branches: "main"
GitHub workflows
name: Semantic Release
on:
# push:
# branches: [main]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "lts/*"
- name: install
run: |
npm install \
semantic-release \
@semantic-release/changelog \
@semantic-release/git \
conventional-changelog-conventionalcommits \
@divlook/semantic-release-config \
--no-save
- name: create .releaserc.yml
run: |
cat <<EOT > .releaserc.yml
extends: "@divlook/semantic-release-config"
branches: "main"
EOT
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}