Skip to content

Release

Release #130

Workflow file for this run

name: Release
permissions:
contents: write
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * 1'
jobs:
test-lint-build:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- name: Checkouting repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
persist-credentials: false
fetch-depth: 0
- name: Node setup
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: yarn
- name: Install deps
run: yarn install && yarn nuxt prepare
- name: Run tests
run: yarn run test
- name: Run lint
run: yarn run lint --ignore-pattern ".github"
- name: Run Build
run: yarn run build
bump-package-version:
needs: test-lint-build
timeout-minutes: 4
runs-on: ubuntu-latest
steps:
- name: Checkouting repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
persist-credentials: false
fetch-depth: 0
- name: Node setup
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 18
cache: yarn
- name: Bump versions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git pull
npx --yes changelogen@latest --release
- name: Push changes
env:
PAT: ${{ secrets.ACTIONS_PAT }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin "https://[email protected]/logotip4ik/keycap"
git push origin ${{ github.ref_name }}
trigger-release:
needs: [test-lint-build, bump-package-version]
timeout-minutes: 1
runs-on: ubuntu-latest
steps:
- name: Trigger deployment
env:
TRIGGER_DEPLOYMENT: ${{ secrets.TRIGGER_DEPLOYMENT }}
shell: bash
run: curl -X POST $TRIGGER_DEPLOYMENT