Choices/.github/workflows/deployment.yml
2026-03-09 17:07:17 +00:00

25 lines
514 B
YAML

name: Publish to npm
on:
release:
types: [published]
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
env:
HUSKY_SKIP_INSTALL: true
- run: npm publish --provenance --access public