Skip to content

Commit

Permalink
feat: fix release-please (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-bushaev authored Apr 22, 2023
1 parent 328d2b9 commit dca5c0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 39 deletions.
43 changes: 5 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
name: New release

on:
workflow_dispatch:
inputs:
bump-level:
description: "Version level to be bumped"
required: true
default: bug
type: choice
options:
- bug
- feature
- major
push:
branches:
- main

jobs:
release:
Expand All @@ -20,31 +12,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Node 16
uses: actions/setup-node@v3
- uses: google-github-actions/release-please-action@v3
with:
node-version: 16
cache: "yarn"

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Get current version
id: package_version
uses: martinbeentjes/npm-get-version-action@main
with:
path: idkit

- name: Calculate next version
uses: christian-draeger/[email protected]
id: bump_version
with:
current-version: ${{ steps.package_version.outputs.current-version }}
version-fragment: ${{ github.event.inputs.bump-level }}

- name: Release
run: |
npx release-please release-pr \
--token=${{ secrets.GITHUB_TOKEN }} \
--repo-url=${{ github.repository }} \
--release-as=${{ steps.bump_version.outputs.next-version }}
command: manifest
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"path": "example-nextjs/package.json",
"jsonpath": "$.version"
}
]
],
"skip-github-release": true
},
"idkit": {
"package-name": "idkit",
Expand Down

0 comments on commit dca5c0f

Please sign in to comment.