Skip to content

perf: add npm provenance #44

perf: add npm provenance

perf: add npm provenance #44

Workflow file for this run

on:
push:
branches:
- master
- main
name: Release
permissions:
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{secrets.RELEASE_TOKEN}}
release-type: node
package-name: "rehype-prism"
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}
- run: corepack pnpm i
if: ${{ steps.release.outputs.release_created }}
- run: corepack pnpm publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}