Skip to content

fix failing pipeline #1

fix failing pipeline

fix failing pipeline #1

name: Build & Publish Package

Check failure on line 1 in .github/workflows/build-and-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-publish.yml

Invalid workflow file

(Line: 38, Col: 32): Unrecognized named-value: 'GITHUB_REPOSITORY'. Located at position 1 within expression: GITHUB_REPOSITORY
on:
workflow_call:
inputs:
increment:
required: true
type: string
preid:
required: false
type: string
env:
NODE_VERSION: 22
jobs:
build-and-publish:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
with:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- uses: aboutbits/github-actions-base/git-setup@v2
- uses: aboutbits/github-actions-node/configure-github-npm-registry-access@v3
- uses: aboutbits/github-actions-node/configure-github-npm-registry-organization@v3
- uses: aboutbits/github-actions-node/build-and-publish-package@v3
id: package
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://npm.pkg.github.com'
registry-token: ${{ secrets.GITHUB_TOKEN }}
increment: ${{ github.event.inputs.increment }}
preid: ${{ github.event.inputs.preid }}
- uses: aboutbits/github-actions-base/github-create-release@v2
with:
tag-name: 'v${{ steps.package.outputs.version }}'
release-description: |
```bash
npm install @${{ GITHUB_REPOSITORY }}@^${{ steps.package.outputs.version }}
```
release-notes-generation: 'true'