Skip to content

npx maybe?

npx maybe? #8

Workflow file for this run

name: Publish NPM Package
on:
push:
tags:
- '*'
branches:
- ci/fix-npm-trusted-publishing
permissions:
id-token: write
contents: read
jobs:
package:
runs-on: ubuntu-latest
name: Publish NPM Package
steps:
- name: Cloning repo
uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: 'https://registry.npmjs.org' # required for trusted publishing
- run: npm i
- name: Build
run: npm run build
# 🔑 Use npm@latest directly for publish
- name: Publish (trusted publishing)
run: npx -y npm@latest publish --provenance --access public --loglevel verbose