Skip to content

fix(release): update npm publish command to set registry configuratio… #60

fix(release): update npm publish command to set registry configuratio…

fix(release): update npm publish command to set registry configuratio… #60

Workflow file for this run

name: Release
on:
push:
branches: [master, develop]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org/
scope: "@smakss"
cache: pnpm
- name: Ensure npm CLI supports OIDC
run: npm install -g npm@11.5.1
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Release (master)
if: github.ref_name == 'master'
run: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release (develop)
if: github.ref_name == 'develop'
run: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}