Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ updates:
commit-message:
prefix: 'chore'
include: 'scope'
cooldown:
default-days: 5
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
commit-message:
prefix: 'chore'
include: 'scope'
cooldown:
default-days: 5
35 changes: 16 additions & 19 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Test & Maybe Release
on: [push, pull_request]

jobs:
test:
strategy:
fail-fast: false
matrix:
node: [18.x, 20.x, lts/*, current]
node: [lts/*, current]
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -16,17 +17,26 @@ jobs:
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: npm install --no-progress
- name: Check build is up to date
run: |
npm install --no-progress
npm run build
git diff --exit-code || (echo "::error::Build artifacts not committed. Run 'npm run build' and commit the changes." && exit 1)
- name: Run tests
run: |
npm config set script-shell bash
npm run test:ci

release:
name: Release
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
Expand All @@ -36,26 +46,13 @@ jobs:
uses: actions/setup-node@v6.3.0
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: |
npm install --no-progress --no-package-lock --no-save
run: npm install --no-progress --no-package-lock --no-save
- name: Build
run: |
npm run build
- name: Install plugins
run: |
npm install \
@semantic-release/commit-analyzer \
conventional-changelog-conventionalcommits \
@semantic-release/release-notes-generator \
@semantic-release/npm \
@semantic-release/github \
@semantic-release/git \
@semantic-release/changelog \
--no-progress --no-package-lock --no-save
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: npx semantic-release

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules/
node_modules
package-lock.jsontypes/tsconfig.tsbuildinfo
package-lock.json
Loading