Skip to content

Commit

Permalink
ci: automatic Semantic Release on merge to master
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumm committed Jan 19, 2024
1 parent 5a7e559 commit f33d7ad
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ jobs:
comment:
runs-on: ubuntu-latest
permissions:
# id-token: write
contents: read
pull-requests: write
steps:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Semantic Release"

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm ci
- run: npm run release --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f33d7ad

Please sign in to comment.