Skip to content

Fix no-negated-condition lint errors in namespace prefix logic #62

Fix no-negated-condition lint errors in namespace prefix logic

Fix no-negated-condition lint errors in namespace prefix logic #62

Workflow file for this run

name: NPM Publish

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 16, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'pnpm/action-setup0e279bb959325dab635dd2c09392533439d90093'
on:
release:
types: [created]
permissions:
id-token: write # Required for OIDC provenance
contents: write
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: pnpm/action-setup0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
- run: pnpm install --frozen-lockfile --ignore-scripts
- run: pnpm test
- run: pnpm run build
- name: Bump version
run: |
VERSION=${GITHUB_REF_NAME#v}
pnpm version $VERSION --no-git-tag-version
- name: Commit and push version bump
env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add package.json pnpm-lock.yaml
git commit -m "chore: bump version to ${GITHUB_REF_NAME#v}"
git push origin HEAD:$DEFAULT_BRANCH
- run: pnpm publish --no-git-checks