Skip to content

Commit

Permalink
infra: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yndx-birman committed Nov 21, 2023
1 parent c941916 commit dd907af
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
push:
branches: [master]

name: release

permissions:
contents: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm ci
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 dd907af

Please sign in to comment.