Skip to content

Commit

Permalink
chore: drop OS matrix, rename default branch
Browse files Browse the repository at this point in the history
We're not working with any OS specific stuff
  • Loading branch information
wkillerud committed Jun 25, 2024
1 parent 55d3268 commit f4316df
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 40 deletions.
37 changes: 13 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Release and Publish

on:
push:
branches:
- master
branches:
- main
- alpha
- beta
- next
Expand All @@ -14,37 +14,26 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

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

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

- name: npm lint
run: |
npm run lint
run: npm run lint

- name: npm types
run: npm run types

- name: npm test
run: |
npm test
run: npm test

release:
name: Release
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: npm install
run: |
npm install
- name: npx semantic-release
run: |
npx semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34 changes: 19 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
name: Run Lint and Tests

on: push
on:
pull_request:
branches:
- main
- alpha
- beta
- next

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [lts/-2, lts/-1, lts/*]
node-version: [lts/-1, lts/*]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: npm install
run: |
npm install
env:
CI: true
run: npm install

- name: npm lint
run: |
npm run lint
env:
CI: true
run: npm run lint

- name: npm types
run: npm run types

- name: npm test
run: |
npm test
env:
CI: true
run: npm test
2 changes: 1 addition & 1 deletion release.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
],
preset: 'angular',
branches: [
{ name: 'master' },
{ name: 'main' },
{ name: 'alpha', prerelease: true },
{ name: 'beta', prerelease: true },
{ name: 'next', prerelease: true },
Expand Down

0 comments on commit f4316df

Please sign in to comment.