Skip to content

0.1.1

0.1.1 #2

Workflow file for this run

name: Release
# Publish to npm when a version tag is pushed:
# npm version patch && git push --follow-tags
#
# Auth: NPM_TOKEN repo secret (granular access token with read/write on the
# @pify scope, or a classic Automation token — both bypass OTP in CI).
# Provenance comes from --provenance + id-token: write on a GitHub-hosted
# runner. Once the package exists, this can be migrated to OIDC trusted
# publishing and the token deleted.
on:
push:
tags: ["v*"]
permissions: {}
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # npm provenance
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run typecheck
- run: npm run build
- run: npm test
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}