Skip to content

feat(workflow): Add a github workflow to generate new version #3

feat(workflow): Add a github workflow to generate new version

feat(workflow): Add a github workflow to generate new version #3

Workflow file for this run

# This workflow generate a new version and push on the main branch
# It's run manually
name: Build version
on:
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-upload-new-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup node js
uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Setup git
# The name of this bot is bnote-settings-deployer
run: git config --global user.name "bnote-settings-deployer" && git config --global user.email "[email protected]"
- name: Install dependencies
run: npm install

Check failure on line 31 in .github/workflows/Build version.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/Build version.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
- name: Build new version
# Use standard-version to generate a new version
run: npm run release
- name: Push new version
run: git push --follow-tags origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}