Skip to content

Commit

Permalink
infra: release action
Browse files Browse the repository at this point in the history
  • Loading branch information
moki committed Oct 24, 2023
1 parent 5f8a3a3 commit 03ac814
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,28 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: yandex-cloud/ui-release-action@main
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
github-token: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }}
npm-token: ${{ secrets.ROBOT_DATAUI_NPM_TOKEN }}
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm i -g 'npm@10.*' --registry=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: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{secrets.YC_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
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.ROBOT_DATAUI_NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
shell: bash

0 comments on commit 03ac814

Please sign in to comment.