Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
- "18"
- "*"
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v5
- uses: codecov/codecov-action@v7
with:
name: Node.js ${{ matrix.node-version }}
token: ${{ secrets.CODECOV_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
tags:
- "v*.*.*"

permissions:
id-token: write # Required for NPM trusted publishing.
contents: read

jobs:
npm:
name: Publish to npm
runs-on: ubuntu-latest
environment:
name: release
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: latest
package-manager-cache: false # Disable automatic npm dependency caching to reduce cache poisoning risk

- run: npm ci --ignore-scripts
- run: npm test
- run: npm stage publish # Runs prepublish script.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
coverage/
node_modules/
npm-debug.log
package-lock.json
dist
*.tsbuildinfo
Loading
Loading