Skip to content

Commit

Permalink
ci: update release and ci workflow to latest standards
Browse files Browse the repository at this point in the history
  • Loading branch information
tagoro9 committed Sep 1, 2023
1 parent ca21647 commit 123aadf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,32 @@ name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:

release-notes:
name: Release notes preview
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- uses: open-turo/actions-release/release-notes-preview@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
NPM_TOKEN: ${{ secrets.OPEN_TURO_NPM_TOKEN }}

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pre-commit/[email protected]
- uses: wagoid/commitlint-github-action@v2
- uses: open-turo/action-pre-commit@v1

test:
name: Test
runs-on: ubuntu-latest
steps:
- run: echo no tests
shell: bash
9 changes: 6 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ on:
# Handle release versioning automatically with semantic release
jobs:
semantic-release:
name: Semantic Release
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: go-semantic-release/action@v1
- name: Checkout
uses: actions/checkout@v3
- uses: open-turo/actions-release/semantic-release@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-plugins: |
@open-turo/semantic-release-config

0 comments on commit 123aadf

Please sign in to comment.