Skip to content

Specify node version in docs/package.json #19

Specify node version in docs/package.json

Specify node version in docs/package.json #19

Workflow file for this run

name: Publish Package
on:
push:
branches:
- master
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node JS
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}