Skip to content

Publish to NPM

Publish to NPM #7

Workflow file for this run

name: Publish to NPM
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Publish package
run: pnpm publish projects/angular-components --no-git-checks # This commit will be checked out without being attatched to a branch.
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}