v0.1.3 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |