Skip to content

prepublish 3.44.0

prepublish 3.44.0 #112

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency:
group: release
jobs:
publish:
if: github.actor != 'weka-version-bumper[bot]'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: 919414
private-key: ${{ secrets.WEKA_VERSION_BUMPER_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
ref: main
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
registry-url: https://npm.pkg.github.com/
scope: '@weka'
- run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@users.noreply.github.com'
- name: Create new build branch locally
run: git checkout -b build
- run: yarn install
- run: yarn run prepare-for-release --force
- run: git add .
- run: git status
- name: Bump minor version
run: yarn version --minor --no-git-tag-version
- run: echo "tag=$(jq .version package.json -r)" >> $GITHUB_OUTPUT
name: Print future release version
id: version_bump
- run: git add package.json
- run: git commit -m 'prepublish ${{ steps.version_bump.outputs.tag }}'
- run: git tag ${{ steps.version_bump.outputs.tag }}
- run: git push -f origin build
- run: git push origin tag ${{ steps.version_bump.outputs.tag }}
- run: git checkout main
- run: yarn version --minor --no-git-tag-version
- run: git add package.json
- run: git commit -m 'prepublish ${{ steps.version_bump.outputs.tag }}'
- run: git push origin main