ci: try fix bump version #67
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
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 |