Skip to content

Use npm publish in release workflow #2

Use npm publish in release workflow

Use npm publish in release workflow #2

Workflow file for this run

name: Release NPM
permissions:
contents: write
id-token: write
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: lts/*
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v5
- run: pnpm install
- name: Upgrade npm
run: npm i -g npm@latest
- name: Publish to NPM
run: npm publish