Skip to content

Commit

Permalink
feat: update alpha-releases (#597)
Browse files Browse the repository at this point in the history
* feat: update alpha-releases

* 1.27.4-alpha.0

---------

Co-authored-by: gravity-ui-bot <[email protected]>
  • Loading branch information
Juli Ovechkina and gravity-ui-bot authored Sep 26, 2023
1 parent d8f51be commit e07a76e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/release-1.x.x-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,8 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: gravity-ui/release-action@yuberdysheva/alpha-release
with:
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
node-version: 14
registry-url: 'https://registry.npmjs.org'
- run: npm ci
shell: bash
- run: npm test
shell: bash
- uses: codex-team/action-nodejs-package-info@v1
id: package
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
release-type: node
package-name: ${{ steps.package.outputs.name }}
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"perf","section":"Performance Improvements","hidden":false}]'
bump-minor-pre-major: true
default-branch: version-1.x.x/fixes
- run: npm publish --tag untagged --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
shell: bash
22 changes: 22 additions & 0 deletions .github/workflows/release-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release alpha version

on:
workflow_dispatch:
inputs:
manualPackageVersion:
type: string
required: false
description: 'If your build failed and the version is already exists you can set version of package manually, e.g. 3.0.0-alpha.0. Use the prefix `alpha` otherwise you will get error.'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: gravity-ui/release-action@yuberdysheva/alpha-release
with:
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
node-version: 14
npm-dist-tag: alpha
manual-version: ${{ github.event.inputs.manualPackageVersion }}
prerelease: true
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gravity-ui/page-constructor",
"version": "1.27.3",
"version": "1.27.4-alpha.0",
"description": "Gravity UI Page Constructor",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit e07a76e

Please sign in to comment.