diff --git a/.github/workflows/release-1.x.x-fix.yml b/.github/workflows/release-1.x.x-fix.yml index 66ee603c0..0cb0aa935 100644 --- a/.github/workflows/release-1.x.x-fix.yml +++ b/.github/workflows/release-1.x.x-fix.yml @@ -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 diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml new file mode 100644 index 000000000..7285a1f06 --- /dev/null +++ b/.github/workflows/release-alpha.yml @@ -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