Skip to content

v0.1.1

v0.1.1 #3

Workflow file for this run

name: Publish Package to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
environment:
name: production
url: https://www.npmjs.com/package/@benjc/rehype-semantic-images
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
scope: "@benjc"
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Run install
run: pnpm i
- name: Run build
run: pnpm run build
- name: Run publish
run: npm publish --provenance --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}