setup for trusted publishing
Some checks failed
Generate CRDs / generate-crds (push) Has been cancelled
Some checks failed
Generate CRDs / generate-crds (push) Has been cancelled
This commit is contained in:
10
.github/workflows/generate.yml
vendored
10
.github/workflows/generate.yml
vendored
@@ -7,6 +7,10 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-crds:
|
generate-crds:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -59,8 +63,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Publish to npm
|
- name: Publish to npm (Trusted Publishing)
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
run: npm publish
|
run: npm publish --provenance
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user