Skip to content

Commit

Permalink
ci: enable semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Nov 16, 2023
1 parent e922605 commit 6f2111b
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/real-workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,34 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Test running on ${{github.repository}}
run: echo Commit ${{github.sha}} seems to be working
- <<: *anchor
run: echo Commit ${{github.sha}} from a merge key seems to be working
- *anchor

release:
concurrency:
group: release-${{ github.event.number || github.ref }}
permissions:
contents: write
packages: write
needs:
- test
runs-on: ubuntu-22.04
if: >-
!github.event.repository.fork
&& (
github.event_name != 'pull_request'
|| github.event.pull_request.head.repo.full_name == github.repository
)
steps:
- name: Install Node
uses: actions/[email protected]
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install dependencies
run: npm install
- name: Semantic Release
run: npx semantic-release

0 comments on commit 6f2111b

Please sign in to comment.