Skip to content

fix(test): type the caught error in the fetchJson HttpError test #3

fix(test): type the caught error in the fetchJson HttpError test

fix(test): type the caught error in the fetchJson HttpError test #3

Workflow file for this run

name: Release
# Publishes to npm when you push a version tag, e.g. `git tag v0.1.0 && git push --tags`.
# Requires an NPM_TOKEN secret in the repository settings.
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # enables npm provenance
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
cache: npm
- run: npm ci
- run: npm test
- name: Publish to npm
if: ${{ env.NPM_TOKEN != '' }}
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}