Skip to content

Commit

Permalink
Update release metada in gauge repository
Browse files Browse the repository at this point in the history
Signed-off-by: BugDiver <[email protected]>
  • Loading branch information
BugDiver committed Jun 11, 2024
1 parent c7a59a7 commit 0356b4c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 31 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
if: github.event.deployment.environment == 'production'
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
GITHUB_TOKEN: '${{ ecrets.GAUGEBOT_GITHUB_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
CI: true

Expand Down Expand Up @@ -41,29 +41,28 @@ jobs:
cd artifacts
version=$(ls gauge-ts* | head -1 | sed "s/\.[^\.]*$//" | sed "s/gauge-ts-//" | sed "s/-[a-z]*\.[a-z0-9_]*$//");
if [ -z "$version" ]; then
echo "Gauge version is not set"
echo "version is not set"
exit 1
fi
echo "VERSION=$version" >> $GITHUB_ENV
echo -e "gauge-ts v$version\n\n" > desc.txt
release_description=$(ruby -e "$(curl -sSfL https://github.com/getgauge/gauge/raw/master/build/create_release_text.rb)" getgauge gauge-ts)
echo "$release_description" >> desc.txt
echo "Creating new draft for release v$version"
gh release create "v$version" -F ./desc.txt
sleep 10
echo "Start uploading assets..."
for i in `ls $artifacts`; do
gh release upload "v$version" $i
done
cat desc.txt
rm -rf desc.txt
gh release create --title "Gauge Typescript v${version}" --notes-file ./desc.txt "v${version}" gauge-ts*
- name: Deploy npm
working-directory: gauge-ts
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm publish --access=public
- name: Update metadata in gauge-repository
run: |
git clone https://github.com/getgauge/gauge-repository.git
cd gauge-repository
python update_metadata.py ts $VERSION
commit_message=$(echo -e "Update ts to v$VERSION")
git commit -am "$commit_message"
git push "https://$GITHUB_ACTOR:[email protected]/getgauge/gauge-repository.git" master
2 changes: 1 addition & 1 deletion gauge-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gauge-ts",
"version": "0.3.0",
"version": "0.3.1",
"description": "Typescript runner for Gauge",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion gauge-ts/ts.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"linux": ["./launcher.mjs", "--start"],
"windows": ["launcher.bat", "--start"]
},
"version": "0.3.0",
"version": "0.3.1",
"gRPCSupport": true
}
15 changes: 0 additions & 15 deletions release.sh

This file was deleted.

0 comments on commit 0356b4c

Please sign in to comment.