Skip to content

Commit

Permalink
ci: Add semantic-release test workflow (#464)
Browse files Browse the repository at this point in the history
* ci: Add semantic-release test to validate-pr workflow
  • Loading branch information
PoomSmart authored Nov 9, 2024
1 parent e7c3998 commit 3d1fe12
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/validate-semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate semantic release

on: [pull_request]

jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: |
GITHUB_REF=${{ github.head_ref }}
yarn semantic-release --no-ci --dry-run --branches ${{ github.head_ref }}

0 comments on commit 3d1fe12

Please sign in to comment.