FRONTEND-509: Try to allow GitHub Actions to push master (#10)

This commit is contained in:
Rinat Arsaev 2021-04-15 15:02:24 +03:00
parent d2321c3d7e
commit e1e6ab8b2e
7 changed files with 21 additions and 15 deletions

View File

@ -10,8 +10,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# https://stackoverflow.com/questions/60180630/lerna-always-lists-all-packages-ready-to-publish-when-running-workflow-of-github
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Setup Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
@ -29,4 +33,10 @@ jobs:
- name: Build
run: npm run build
- name: Test
run: npm run test
run: npm run test
- name: Version up
run: npm run versionup
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,4 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run versionup

8
package-lock.json generated
View File

@ -8593,9 +8593,9 @@
},
"packages/partial-fetcher": {
"name": "@rbkmoney/partial-fetcher",
"version": "0.2.0",
"version": "0.3.1-pr.0",
"dependencies": {
"@rbkmoney/utils": "^0.2.0"
"@rbkmoney/utils": "^0.3.1-pr.0"
},
"peerDependencies": {
"@ngneat/until-destroy": "^8.0.0",
@ -8604,7 +8604,7 @@
},
"packages/utils": {
"name": "@rbkmoney/utils",
"version": "0.2.0",
"version": "0.3.1-pr.0",
"peerDependencies": {
"@angular/core": "^11.0.0"
}
@ -9764,7 +9764,7 @@
"@rbkmoney/partial-fetcher": {
"version": "file:packages/partial-fetcher",
"requires": {
"@rbkmoney/utils": "^0.2.0"
"@rbkmoney/utils": "^0.3.1-pr.0"
}
},
"@rbkmoney/utils": {

View File

@ -3,10 +3,10 @@
"private": true,
"scripts": {
"prepare": "husky install",
"bootstrap": "lerna bootstrap",
"bp": "lerna bootstrap",
"build": "lerna run build",
"test": "lerna run test",
"versionup": "lerna version --no-commit-hooks --conventional-prerelease --no-push --no-changelog --preid pr --yes",
"versionup": "lerna version --no-commit-hooks --conventional-prerelease --no-changelog --preid pr --yes",
"release": "run-s build release-versionup release-publish",
"release-versionup": "lerna version --no-commit-hooks --conventional-graduate --yes",
"release-publish": "lerna publish from-package --no-commit-hooks --no-verify-access --yes"

View File

@ -1,6 +1,6 @@
{
"name": "@rbkmoney/partial-fetcher",
"version": "0.3.0",
"version": "0.4.0-pr.4",
"description": "Partial Fetcher",
"author": "rbkmoney",
"main": "lib/index",
@ -25,6 +25,6 @@
"rxjs": "^6.0.0"
},
"dependencies": {
"@rbkmoney/utils": "^0.3.0"
"@rbkmoney/utils": "^0.4.0-pr.2"
}
}

View File

@ -1,6 +1,6 @@
# Utils
For
Utils for working with
- Angular
- RxJS

View File

@ -1,6 +1,6 @@
{
"name": "@rbkmoney/utils",
"version": "0.3.0",
"version": "0.4.0-pr.2",
"description": "Utils",
"author": "rbkmoney",
"main": "lib/index",