allow breaking changes #166
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: | |
- stable | |
jobs: | |
release: | |
name: Release | |
if: | | |
!(github.event_name == 'push' && contains(github.event.head_commit.message, '[skip ci]')) && | |
!(github.event_name == 'pull_request' && contains(join(github.event.pull_request.title, github.event.pull_request.body), '[skip ci]')) | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_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 }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
env: | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Semantic release storefront-types | |
run: ./node_modules/.bin/turbo run release --filter=@makaira/storefront-types | |
# - name: Run renovate | |
# uses: renovatebot/[email protected] | |
# with: | |
# configurationFile: ./renovate.config.js | |
# token: ${{ secrets.RENOVATE_TOKEN }} | |
# gitAuthor: ${{ secrets.GIT_AUTHOR }} | |
# env: | |
# GIT_AUTHOR: ${{ secrets.GIT_AUTHOR }} | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# LOG_LEVEL: debug | |
- name: Fetch latest version | |
run: | | |
git restore . | |
git pull | |
- name: Install dependencies | |
run: npm ci | |
- name: Semantic release | |
run: ./node_modules/.bin/turbo run release --filter="!@makaira/storefront-types" --concurrency=1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_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 }} |