Skip to content

ci(release): add NPM provenance #13

ci(release): add NPM provenance

ci(release): add NPM provenance #13

name: release-please
on:
push:
branches: [main]
permissions:
id-token: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
outputs:
release_created: ${{ steps.release.outputs.release_created }}
release:
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: Build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm ci
npm run build
npm publish --provenance --access public