Skip to content

Publish

Publish #8

Workflow file for this run

name: Publish
on:
push:
tags: ['v*']
jobs:
publish:
if: github.repository == 'brc-dd/prettier-plugin-vitepress'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
- uses: denoland/setup-deno@v2
- run: deno task build
- run: cd dist && npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}