Skip to content

Commit

Permalink
ci: install commitlint dependencies, remove release preview (#145)
Browse files Browse the repository at this point in the history
* ci: remove release preview

* ci: install missing npm package

* ci: run Action when PR title changes
  • Loading branch information
daniel-mader authored Nov 20, 2024
1 parent e8bb691 commit 16762ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/format-lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,3 @@ jobs:

- name: Test
run: cargo test --workspace

- uses: actions/setup-node@v4
with:
node-version: "lts/*"

- name: Release Preview
run: npx semantic-release@24 --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/lint-pr-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- beta
- alpha
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
# types: [opened, synchronize, reopened, edited]
types: [opened, synchronize, reopened, edited]

jobs:
build:
Expand All @@ -26,6 +26,8 @@ jobs:
with:
node-version: "lts/*"

- run: npm install -g @commitlint/config-angular

- run: echo $TITLE | npx commitlint
env:
# Security: we mitigate script injections by using an intermediate environment variable
Expand Down

0 comments on commit 16762ac

Please sign in to comment.