Skip to content

Commit

Permalink
chore: fix workflow OS matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Jul 8, 2024
1 parent 6090825 commit cf56d7b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 29 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,23 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: npm install
run: npm install

- name: npm test
run: npm test


release:
name: Release
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: npm install
- name: Install dependencies
run: npm install

- name: npx semantic-release
- name: Run tests
run: npm run test

- name: Run semantic release
run: npx semantic-release
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
18 changes: 11 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Run Lint and Tests

on: push
on:
push:
branches-ignore:
- master
- alpha
- beta
- next

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [18.x, 20.x]
node-version: [18, 20]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
Expand All @@ -18,8 +24,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: npm install
run: npm install
- run: npm install

- name: Run tests
run: npm test
- run: npm test

0 comments on commit cf56d7b

Please sign in to comment.