Skip to content

chore: Disable git checks for publishing and update web package versi… #7

chore: Disable git checks for publishing and update web package versi…

chore: Disable git checks for publishing and update web package versi… #7

Workflow file for this run

name: Publish to NPM
on:
push:
tags:
- "*"
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
# Ensure npm 11.5.1 or later is installed
- name: Upgrade npm
run: npm install -g npm@latest
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10.6.5
- name: Install dependencies and publish package
run: |
pnpm i
pnpm publish --no-git-checks