mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 18:15:03 +02:00
Auto bump packages (#2662)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user