Skip to content

Merge pull request #10 from nkmr-jp/develop #25

Merge pull request #10 from nkmr-jp/develop

Merge pull request #10 from nkmr-jp/develop #25

Workflow file for this run

# .github/workflows/release.yml
name: Release
on:
push:
branches:
- master
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
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
- name: Publish
working-directory: ./
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "nkmr-jp"
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
npm run sync-version
npm publish --access=public
git push