Skip to content

Commit

Permalink
feat: update alpha-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
yuberdysheva committed Sep 26, 2023
1 parent d8f51be commit 4d2e11d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 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

0 comments on commit 4d2e11d

Please sign in to comment.