diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml
deleted file mode 100644
index e926861..0000000
--- a/.github/actions/install/action.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-name: "Clone and Install"
-description: "Clones repository and sets up Node environment"
-runs:
- using: "composite"
- steps:
- - name: Set up Node
- uses: actions/setup-node@v4
- with:
- node-version: '18.x'
- registry-url: 'https://registry.npmjs.org'
-
- - name: Install dependencies
- run: npm install
- shell: bash
diff --git a/.github/workflows/conventional-commit.yml b/.github/workflows/conventional-commit.yml
new file mode 100644
index 0000000..facc6f6
--- /dev/null
+++ b/.github/workflows/conventional-commit.yml
@@ -0,0 +1,29 @@
+name: Conventional Commit
+
+on:
+ pull_request:
+ types:
+ - edited
+ - opened
+
+jobs:
+ conventional-commit:
+ name: Conventional Commit
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check PR Conventional Commit title
+ uses: amannn/action-semantic-pull-request@v5
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ types: | # mirrors changelog-sections in the /release-please-config.json
+ feat
+ fix
+ infra
+ ci
+ docs
+ deps
+ perf
+ refactor
+ test
+ chore
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 51d2862..af83801 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -5,18 +5,23 @@ on:
tags:
- '*'
+permissions:
+ id-token: write
+ contents: read
+
jobs:
package:
runs-on: ubuntu-latest
name: Publish NPM Package
steps:
- - name: Check out repository
+ - name: Cloning repo
uses: actions/checkout@v4
- - name: Clone and Install
- uses: ./.github/actions/install
+ - uses: actions/setup-node@v4
+ with:
+ node-version-file: .nvmrc
+ registry-url: 'https://registry.npmjs.org' # required for trusted publishing
+ - run: npm i
- run: npm run deploy
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml
index aa85da8..c72d0ee 100644
--- a/.github/workflows/pull-request.yml
+++ b/.github/workflows/pull-request.yml
@@ -18,8 +18,15 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4
- - name: Clone and Install
- uses: ./.github/actions/install
+ - name: Set up Node
+ uses: actions/setup-node@v4
+ with:
+ node-version-file: .nvmrc
+ registry-url: 'https://registry.npmjs.org'
+
+ - name: Install dependencies
+ run: npm install
+ shell: bash
- name: Build
run: npm run build
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
new file mode 100644
index 0000000..968c75b
--- /dev/null
+++ b/.github/workflows/release-please.yml
@@ -0,0 +1,18 @@
+name: Update release PR
+
+on:
+ push:
+ branches:
+ - main
+
+permissions:
+ contents: write
+ pull-requests: write
+
+jobs:
+ release-please:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: googleapis/release-please-action@v4
+ with:
+ token: ${{ secrets.RELEASE_PLEASE_GITHUB_TOKEN }}
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 0000000..a45fd52
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+24
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
new file mode 100644
index 0000000..57e0617
--- /dev/null
+++ b/.release-please-manifest.json
@@ -0,0 +1 @@
+{".":"0.2.1"}
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..0b1e64a
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,38 @@
+
+# [0.2.1 - Update Flagsmith sdk](https://github.com/Flagsmith/flagsmith-cli/releases/tag/0.2.1) - 2025-03-20
+
+Merges [#25](https://github.com/Flagsmith/flagsmith-cli/pull/25)
+
+[Changes][0.2.1]
+
+
+
+# [0.1.3 - Adds prettify flag -p](https://github.com/Flagsmith/flagsmith-cli/releases/tag/0.1.3) - 2023-05-29
+
+[#12](https://github.com/Flagsmith/flagsmith-cli/pull/12)
+
+[Changes][0.1.3]
+
+
+
+# [0.1.2 - Add Identity flag -i](https://github.com/Flagsmith/flagsmith-cli/releases/tag/0.1.2) - 2023-05-29
+
+[#11](https://github.com/Flagsmith/flagsmith-cli/pull/11)
+
+[Changes][0.1.2]
+
+
+
+# [0.1.1 - Fix api-input in a wrong const](https://github.com/Flagsmith/flagsmith-cli/releases/tag/0.1.1) - 2023-01-20
+
+Merges [#10](https://github.com/Flagsmith/flagsmith-cli/pull/10), thank you very much [@vladaCizek](https://github.com/vladaCizek)! 🚀
+
+[Changes][0.1.1]
+
+
+[0.2.1]: https://github.com/Flagsmith/flagsmith-cli/compare/0.1.3...0.2.1
+[0.1.3]: https://github.com/Flagsmith/flagsmith-cli/compare/0.1.2...0.1.3
+[0.1.2]: https://github.com/Flagsmith/flagsmith-cli/compare/0.1.1...0.1.2
+[0.1.1]: https://github.com/Flagsmith/flagsmith-cli/tree/0.1.1
+
+
diff --git a/release-please-config.json b/release-please-config.json
new file mode 100644
index 0000000..aa12672
--- /dev/null
+++ b/release-please-config.json
@@ -0,0 +1,62 @@
+{
+ "bootstrap-sha": "1893840aa3f6510d62820fcd291956117fa268d4",
+ "packages": {
+ ".": {
+ "release-type": "node",
+ "changelog-path": "CHANGELOG.md",
+ "bump-minor-pre-major": false,
+ "bump-patch-for-minor-pre-major": false,
+ "draft": false,
+ "prerelease": false,
+ "include-component-in-tag": false
+ }
+ },
+ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
+ "changelog-sections": [
+ {
+ "type": "feat",
+ "hidden": false,
+ "section": "Features"
+ },
+ {
+ "type": "fix",
+ "hidden": false,
+ "section": "Bug Fixes"
+ },
+ {
+ "type": "ci",
+ "hidden": false,
+ "section": "CI"
+ },
+ {
+ "type": "docs",
+ "hidden": false,
+ "section": "Docs"
+ },
+ {
+ "type": "deps",
+ "hidden": false,
+ "section": "Dependency Updates"
+ },
+ {
+ "type": "perf",
+ "hidden": false,
+ "section": "Performance Improvements"
+ },
+ {
+ "type": "refactor",
+ "hidden": false,
+ "section": "Refactoring"
+ },
+ {
+ "type": "test",
+ "hidden": false,
+ "section": "Tests"
+ },
+ {
+ "type": "chore",
+ "hidden": false,
+ "section": "Other"
+ }
+ ]
+}