Update action #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 a new version | |
on: | |
push: | |
branches: [ "[0-9]+.x", "stable" ] | |
jobs: | |
release: | |
name: Create a new release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone code repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v2 | |
with: | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
env: | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
- name: Install npm dependencies | |
run: yarn | |
- name: Semantic release | |
run: yarn semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
GIT_AUTHOR_NAME: ${{ secrets.GIT_USERNAME }} | |
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_EMAIL }} | |
GIT_COMMITTER_NAME: ${{ secrets.GIT_USERNAME }} | |
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_EMAIL }} | |
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }} |