Merge pull request #63 from nkmr-jp/develop #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install jq yq | |
run: | | |
sudo wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O /usr/bin/jq &&\ | |
sudo chmod +x /usr/bin/jq | |
sudo pip install yq | |
jq --version | |
yq --version | |
- name: Install gitmoji-semver | |
run: | | |
git clone https://github.com/nkmr-jp/gitmoji-semver -b v2.0.5 | |
- name: Generate semantic-release configs | |
working-directory: ./gitmoji-semver | |
run: | | |
make scaffold F=../.semver.yml O=.. | |
- name: Release | |
working-directory: ./.release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npx semantic-release |