setup for trusted publishing
Some checks failed
Generate CRDs / generate-crds (push) Has been cancelled

This commit is contained in:
2025-11-24 00:56:34 -06:00
parent a27e8b84c6
commit fe9867675e

View File

@@ -7,6 +7,10 @@ on:
push:
branches: [ main ]
permissions:
contents: read
id-token: write
jobs:
generate-crds:
runs-on: ubuntu-latest
@@ -59,8 +63,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to npm
- name: Publish to npm (Trusted Publishing)
if: github.ref == 'refs/heads/main'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --provenance