Skip to content

Commit

Permalink
Separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed Nov 9, 2024
1 parent aae2e31 commit a4c7288
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,3 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn test
- run: |
GITHUB_REF=${{ github.head_ref }}
yarn semantic-release --no-ci --dry-run --branches ${{ github.head_ref }}
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 a4c7288

Please sign in to comment.