Skip to content

Commit 1092171

Browse files
committed
fix: use release-action
1 parent 5852d8e commit 1092171

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed
Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,18 @@
1-
name: Release Alpha-1
1+
name: Alpha Release
22

33
on:
44
push:
5-
branches: [alpha/test]
5+
branches: [alpha]
66

77
jobs:
88
release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
11+
- uses: gravity-ui/release-action@1b36bbcb33881f0c9b9fbc6d5afb262a123871f5
1312
with:
13+
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
14+
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
1415
node-version: 14
15-
registry-url: 'https://registry.npmjs.org'
16-
- run: npm ci
17-
shell: bash
18-
- run: npm test
19-
shell: bash
20-
- uses: codex-team/action-nodejs-package-info@v1
21-
id: package
22-
- uses: google-github-actions/release-please-action@v3
23-
id: release
24-
with:
25-
token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
26-
release-type: node
27-
package-name: ${{ steps.package.outputs.name }}
28-
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"perf","section":"Performance Improvements","hidden":false}]'
29-
bump-minor-pre-major: true
16+
npm-dist-tag: --tag alpha
3017
prerelease: true
31-
default-branch: alpha/test
32-
- run: npm publish --tag alpha --access public
33-
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
35-
if: ${{ steps.release.outputs.release_created }}
36-
shell: bash
18+
default-branch: alpha

0 commit comments

Comments
 (0)