Skip to content

Commit ce9efcf

Browse files
committed
fix: add tag untagged
1 parent 9b6d3f2 commit ce9efcf

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release version 1.x.x. fix
2+
3+
description:
4+
Organizes CI/CD pipeline for branch with fixes for major version 1.x.x (version-1.x.x/fixes) - generate Changelog and bump version automatically,
5+
create a release PR which once merged results in creating a new GitHub release and publishing a new version of NPM
6+
package
7+
8+
on:
9+
push:
10+
branches: [version-1.x.x/fixes]
11+
12+
inputs:
13+
node-version: 14
14+
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
15+
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
16+
default-branch: version-1.x.x/fixes
17+
18+
jobs:
19+
release:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ inputs.node-version }}
26+
registry-url: 'https://registry.npmjs.org'
27+
- run: npm ci
28+
shell: bash
29+
- run: npm test
30+
shell: bash
31+
- uses: codex-team/action-nodejs-package-info@v1
32+
id: package
33+
- uses: google-github-actions/release-please-action@v3
34+
id: release
35+
with:
36+
token: ${{ inputs.github-token }}
37+
release-type: node
38+
package-name: ${{ steps.package.outputs.name }}
39+
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"perf","section":"Performance Improvements","hidden":false}]'
40+
bump-minor-pre-major: true
41+
default-branch: ${{ inputs.default-branch }}
42+
- run: npm publish --tag untagged --access public
43+
env:
44+
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
45+
if: ${{ steps.release.outputs.release_created }}
46+
shell: bash

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,8 @@
136136
"*.{json,yaml,yml,md}": [
137137
"prettier --write"
138138
]
139+
},
140+
"publishConfig": {
141+
"tag": "untagged"
139142
}
140143
}

0 commit comments

Comments
 (0)