Skip to content

Commit

Permalink
ci: reuse lint workflow in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 committed Nov 5, 2024
1 parent 38655f4 commit 3114b51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Lint

on: [push, pull_request]
on:
pull_request:
branches:
- main
workflow_call:

permissions:
contents: read
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ permissions:
contents: read

jobs:
lint:
uses: ./.github/workflows/lint.yml

release:
name: Release
runs-on: ubuntu-latest
needs: lint
environment: vsce
permissions:
contents: write
Expand All @@ -24,8 +28,6 @@ jobs:
node-version: 22
- name: Install
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Release
run: npx semantic-release
env:
Expand Down

0 comments on commit 3114b51

Please sign in to comment.