Skip to content

v0.1.3

v0.1.3 #4

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-scroll-to-top
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 --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}