Skip to content

Commit 55326ce

Browse files
committed
Fix GitHub Actions workflows and bump version to 1.1.1
- Replace deprecated actions/create-release@v1 with GitHub CLI - Fix ESLint configuration and code formatting issues - Bump version to 1.1.1 (1.1.0 already exists on PyPI) - Update both JavaScript and Python package versions
1 parent 946af38 commit 55326ce

File tree

4 files changed

+58
-54
lines changed

4 files changed

+58
-54
lines changed

.github/workflows/release-combined.yml

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -200,42 +200,44 @@ jobs:
200200
uses: actions/checkout@v4
201201

202202
- name: Create GitHub Release
203-
uses: actions/create-release@v1
203+
run: |
204+
PRERELEASE=""
205+
if [[ "${{ github.ref_name }}" == *"alpha"* ]] || [[ "${{ github.ref_name }}" == *"beta"* ]] || [[ "${{ github.ref_name }}" == *"rc"* ]]; then
206+
PRERELEASE="--prerelease"
207+
fi
208+
209+
gh release create ${{ github.ref_name }} \
210+
--title "Release ${{ github.ref_name }}" \
211+
--notes "## SchemaPin Release ${{ github.ref_name }}
212+
213+
Dual-language cryptographic schema integrity verification package.
214+
215+
### npm Installation
216+
\`\`\`bash
217+
npm install schemapin
218+
\`\`\`
219+
220+
### PyPI Installation
221+
\`\`\`bash
222+
pip install schemapin
223+
\`\`\`
224+
225+
### CLI Tools (Python)
226+
\`\`\`bash
227+
schemapin-keygen --help
228+
schemapin-sign --help
229+
schemapin-verify --help
230+
\`\`\`
231+
232+
### Changes
233+
See [CHANGELOG.md](./CHANGELOG.md) for detailed changes.
234+
235+
### Package Links
236+
- [npm package](https://www.npmjs.com/package/schemapin)
237+
- [PyPI package](https://pypi.org/project/schemapin/)" \
238+
$PRERELEASE
204239
env:
205240
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
206-
with:
207-
tag_name: ${{ github.ref_name }}
208-
release_name: Release ${{ github.ref_name }}
209-
body: |
210-
## SchemaPin Release ${{ github.ref_name }}
211-
212-
Dual-language cryptographic schema integrity verification package.
213-
214-
### npm Installation
215-
```bash
216-
npm install schemapin
217-
```
218-
219-
### PyPI Installation
220-
```bash
221-
pip install schemapin
222-
```
223-
224-
### CLI Tools (Python)
225-
```bash
226-
schemapin-keygen --help
227-
schemapin-sign --help
228-
schemapin-verify --help
229-
```
230-
231-
### Changes
232-
See [CHANGELOG.md](./CHANGELOG.md) for detailed changes.
233-
234-
### Package Links
235-
- [npm package](https://www.npmjs.com/package/schemapin)
236-
- [PyPI package](https://pypi.org/project/schemapin/)
237-
draft: false
238-
prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc') }}
239241

240242
# Required secrets to configure in GitHub repository settings:
241243
# - NPM_TOKEN: npm authentication token

.github/workflows/release-npm.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -132,26 +132,28 @@ jobs:
132132

133133
- name: Create GitHub Release
134134
if: ${{ github.event.inputs.dry_run != 'true' && startsWith(github.ref, 'refs/tags/') }}
135-
uses: actions/create-release@v1
135+
run: |
136+
PRERELEASE=""
137+
if [[ "${{ github.ref_name }}" == *"alpha"* ]] || [[ "${{ github.ref_name }}" == *"beta"* ]] || [[ "${{ github.ref_name }}" == *"rc"* ]]; then
138+
PRERELEASE="--prerelease"
139+
fi
140+
141+
gh release create ${{ github.ref_name }} \
142+
--title "Release ${{ github.ref_name }}" \
143+
--notes "## npm Package Release
144+
145+
Published \`schemapin@${{ github.ref_name }}\` to npm registry.
146+
147+
### Installation
148+
\`\`\`bash
149+
npm install schemapin
150+
\`\`\`
151+
152+
### Changes
153+
See [CHANGELOG.md](./CHANGELOG.md) for details." \
154+
$PRERELEASE
136155
env:
137156
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138-
with:
139-
tag_name: ${{ github.ref_name }}
140-
release_name: Release ${{ github.ref_name }}
141-
body: |
142-
## npm Package Release
143-
144-
Published `schemapin@${{ github.ref_name }}` to npm registry.
145-
146-
### Installation
147-
```bash
148-
npm install schemapin
149-
```
150-
151-
### Changes
152-
See [CHANGELOG.md](./CHANGELOG.md) for details.
153-
draft: false
154-
prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc') }}
155157

156158
# Required secrets to configure in GitHub repository settings:
157159
# - NPM_TOKEN: npm authentication token with publish permissions

javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "schemapin",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Cryptographic schema integrity verification for AI tools",
55
"main": "src/index.js",
66
"type": "module",

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "schemapin"
7-
version = "1.1.0"
7+
version = "1.1.1"
88
description = "Cryptographic schema integrity verification for AI tools"
99
readme = "README.md"
1010
license = {text = "MIT"}

0 commit comments

Comments
 (0)