Skip to content

Release

Release #4

Workflow file for this run

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/
- run: npm run bootstrap
- run: npm run build
- run: node scripts/bump-version.js
- run: |
VERSION=$(node -p "require('./lerna.json').version")
gh release create "$VERSION" \
--repo="$GITHUB_REPOSITORY" \
--title="${VERSION#v}" \
--generate-notes \
./lib/*.zip
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 }}