Auto bump packages (#2662)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-02-20 15:08:55 +07:00
committed by GitHub
parent 042a8a3f87
commit 771503adf7
3 changed files with 355 additions and 155 deletions
+60
View File
@@ -330,3 +330,63 @@ jobs:
run: |
echo Pushing release of tag ${{ github.ref }}
node common/scripts/install-run-rush.js docker:push
npm-publish:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
needs: [build, uitest, test, svelte-check]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache build results
uses: actions/cache@v3
env:
cache-name: cache-build-results
with:
path: |
cloud
common
deploy
dev
models
packages
plugins
pods
products
server
server-plugins
templates
tests
rush.json
.prettierrc
tools
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
- name: Installing...
run: node common/scripts/install-run-rush.js install
- name: Setting model version from git release...
run: node common/scripts/install-run-rush.js bump-model-version
- name: Build, to include new model version
run: node common/scripts/install-run-rush.js build
- name: Bundle
run: node common/scripts/install-run-rush.js bundle
- name: Login to NPM
- run: |
echo @hcengineering/anticrm:https://npm.pkg.github.com/ > build/.npmrc
echo '//npm.pkg.github.com/:_authToken=${NPM_TOKEN}' >> build/.npmrc
- name: NPM bump
run: node common/scripts/bump.js
- name: Create PR
uses: peter-evans/create-pull-request@v4
with:
commit-message: Bump packages
title: Bump packages
body: Bump packages
base: main
labels: automated-pr
branch: bump_packages
delete-branch: true