.github/workflows/release.yml
name: "Release"
on:
push:
branches:
- main
tags:
- '!*'
jobs:
release:
name: Cut a release on GitHub
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: install dependencies
run: npm ci
- name: make a release on GitHub
run: npm_config_yes=true npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_PERSONAL_TOKEN }}
GIT_AUTHOR_NAME: 'GP'
GIT_COMMITTER_NAME: 'GP'
GIT_AUTHOR_EMAIL: 'me@httgp.com'
GIT_COMMITTER_EMAIL: 'me@httgp.com'