Skip to content

Commit 307e978

Browse files
authoredApr 23, 2024··
Merge pull request #19 from thedadams/manual-set-version
fix: don't try to automatically set module version on publish
2 parents a34be95 + dcf64cc commit 307e978

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed
 

‎.github/workflows/release.yaml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release
1+
name: Publish to NPM
22

33
on:
44
push:
@@ -15,9 +15,6 @@ jobs:
1515
- uses: actions/setup-node@v4
1616
with:
1717
node-version: 21
18-
- name: Set package version
19-
run: |
20-
sed -i 's/ "version": "%VERSION%",/ "version": "${{ github.ref_name }}",/' package.json
2118
- name : Install dependencies
2219
run: npm install
2320
- name: Publish release

‎package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gptscript-ai/gptscript",
3-
"version": "%VERSION%",
3+
"version": "v0.5.0",
44
"description": "Run gptscript in node.js",
55
"main": "lib/gptscript.js",
66
"repository": {

0 commit comments

Comments
 (0)
Please sign in to comment.