Skip to content

Switch publish workflow to npm Trusted Publishing (OIDC) #2

Switch publish workflow to npm Trusted Publishing (OIDC)

Switch publish workflow to npm Trusted Publishing (OIDC) #2

Workflow file for this run

name: Publish
on:
push:
tags: ['v*']
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build
- run: npx publint
- run: npx -p @arethetypeswrong/cli attw --pack . --ignore-rules no-resolution
- run: npm publish --access public