Skip to content

Commit

Permalink
ci: update release workflow (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger authored Dec 29, 2023
1 parent cad9c93 commit 19cf209
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on: push

jobs:
build:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-title-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
types: [opened, edited, synchronize, reopened]

jobs:
validate:
pr-title-check:
runs-on: ubuntu-latest
steps:
- uses: glzr-io/actions/semantic-prs@main
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}
gh-token: ${{ secrets.GITHUB_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/pre-release.yaml

This file was deleted.

25 changes: 13 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Release

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

permissions:
contents: write
Expand All @@ -9,20 +12,18 @@ permissions:
id-token: write

jobs:
build:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Semantic release
uses: glzr-io/actions/semantic-release@main
- uses: glzr-io/actions/semantic-release@main
with:
is_prerelease: false
repository_url: 'github.com:glzr-io/glazewm-js.git'
gh_publish: true
gh_token: ${{ secrets.GITHUB_TOKEN }}
npm_publish: true
npm_token: ${{ secrets.NPM_TOKEN }}
is-prerelease: false
gh-publish: true
gh-token: ${{ secrets.GITHUB_TOKEN }}
gh-draft-release: false
npm-publish: true
npm-token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 19cf209

Please sign in to comment.