Skip to content

Publish Package to npm #5

Publish Package to npm

Publish Package to npm #5

Workflow file for this run

name: Publish Package to npm
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .npmrc file
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Publish to npm
run: pnpm publish -r
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}