Skip to content

Version Bump

Version Bump #1236

Workflow file for this run

name: Version Bump
on:
schedule: [{ cron: '0 10 * * *' }] # daily: https://crontab.guru/#0_0_*_*_*
workflow_dispatch:
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}
- run: |-
npm run preversion --silent -- -o -v -- share/node-build || status=$?
case "${status:-0}" in
0) echo "release=true" >> $GITHUB_ENV;;
1) exit 0;; # exit successfully to mask error, but don't release
*) exit $status ;; # all other error codes are true failures
esac
- if: ${{ env.release }}
run: npm version patch
env:
GIT_AUTHOR_NAME: 'nodenv bot'
GIT_AUTHOR_EMAIL: 'nodenv-bot@users.noreply.github.com'
GIT_COMMITTER_NAME: 'nodenv bot'
GIT_COMMITTER_EMAIL: 'nodenv-bot@users.noreply.github.com'