Skip to content

Commit

Permalink
Add semantic release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thasmo committed Nov 24, 2024
1 parent ea82033 commit f44cb24
Show file tree
Hide file tree
Showing 6 changed files with 1,565 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: RELEASE

on:
workflow_dispatch:

jobs:
source:
name: verify source
uses: ./.github/workflows/source.yaml
release:
name: release version
runs-on: ubuntu-latest
needs: [source]
permissions:
issues: write
contents: write
pull-requests: write
steps:
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup package manager
uses: pnpm/action-setup@v4
with:
run_install: false
- name: install node
uses: actions/setup-node@v4
with:
cache: 'pnpm'
check-latest: true
node-version-file: '.nvmrc'
- name: install dependencies
run: pnpm install
- name: release version
run: pnpm exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/source.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: SOURCE

on:
workflow_call:
merge_group:
pull_request:
push:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
engine-strict=true
tag-version-prefix=
preid=rc
access=public
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"knip": "^5.13.0",
"lint-staged": "^15.2.2",
"prettier": "3.3.3",
"semantic-release": "^24.2.0",
"typescript": "^5.4.5"
}
}
Loading

0 comments on commit f44cb24

Please sign in to comment.