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
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: npm
directories: ["/", "/examples/basic"]
schedule:
interval: weekly
groups:
dev-dependencies:
dependency-type: development
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

permissions:
contents: read
id-token: write # npm provenance
id-token: write # npm trusted publishing (OIDC) and provenance

jobs:
publish:
Expand All @@ -16,16 +16,18 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
registry-url: https://registry.npmjs.org
cache: npm
# Trusted publishing needs npm 11.5.1 or later.
- run: npm install -g npm@11
- run: npm ci
- run: npm run typecheck
- run: npm test
- name: Check that the tag matches package.json
run: |
VERSION="$(node -p 'require("./package.json").version')"
test "${GITHUB_REF_NAME#v}" = "$VERSION" || { echo "Tag $GITHUB_REF_NAME does not match version $VERSION"; exit 1; }
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# No token: npm exchanges the GitHub OIDC token for a short-lived publish token. Configure the
# trusted publisher (this workflow file, environment "npm") on npmjs.com or with `npm trust`.
- run: npm publish --access public
Loading
Loading