Release #10
This file contains 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: Release | |
on: workflow_dispatch | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 17 | |
registry-url: https://registry.npmjs.org/ | |
token: ${{ secrets.REPO_GIT_PUSH_TOKEN }} | |
- run: npm run bootstrap | |
- run: node scripts/bump-version.js | |
- run: | | |
VERSION=$(node -p "require('./lerna.json').version") | |
gh auth setup-git | |
git config --global user.name 'Release' | |
git config --global user.email 'release@bot.com' | |
git commit -am "Bump version ($VERSION)" | |
git push | |
env: | |
GH_TOKEN: ${{ github.token }} |