Skip to content

Commit

Permalink
chore: add github action to verify build
Browse files Browse the repository at this point in the history
  • Loading branch information
admon84 committed Jun 23, 2024
1 parent 7fd41dc commit ca72670
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,25 @@ permissions:
pull-requests: read
jobs:
main:
name: Validate PR Title
name: Verify PR Title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
name: Verify Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
env:
npm_config_ignore_scripts: true
run: npm ci
- name: Build
run: npm run build
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install
- name: Install dependencies
env:
npm_config_ignore_scripts: true
run: npm ci
- name: Build
run: npm run build
- name: Install semantic-release
run: npm i semantic-release @semantic-release/commit-analyzer @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator
- name: Publish
Expand Down

0 comments on commit ca72670

Please sign in to comment.