Skip to content

ci: try fix bump version #67

ci: try fix bump version

ci: try fix bump version #67

Workflow file for this run

name: ⚙️ Bump version
on:
workflow_call:
inputs:
projects:
description: "Project list"
required: true
type: string
beta-release:
description: 'Is beta release?'
required: false
type: boolean
default: false
dry-run:
description: 'Is dry run?'
required: false
type: boolean
default: false
secrets:
NPM_TOKEN:
required: true
GITHUB_TOKEN:

Check failure on line 23 in .github/workflows/bump-version.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/bump-version.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
PAT:
required: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
jobs:
bump-version:
runs-on: ubuntu-latest
permissions:
contents: "write"
actions: "read"
id-token: "write"
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
- name: Npm install
uses: ./.github/actions
- name: Bump version
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
npx nx release --skip-publish --projects=${{ inputs.projects }} --dry-run=${{ inputs.dry-run }}
shell: bash