Skip to content

fix: use trusted repo OIDC publishing, remove NPM_TOKEN #3

fix: use trusted repo OIDC publishing, remove NPM_TOKEN

fix: use trusted repo OIDC publishing, remove NPM_TOKEN #3

Workflow file for this run

name: Release
on:
push:
tags: ["v*"]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
- run: bun install --frozen-lockfile
- run: bun run build
- run: bun run typecheck
- run: bun test
- name: Publish mails
run: npm publish --provenance --access public