Skip to content

Commit

Permalink
auto-release action
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyGura committed Aug 15, 2024
1 parent 9dd34c3 commit e155514
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release new version

on:
push:
tags:
- *

jobs:
report_tag_to_notion:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Extract version
id: extract_info
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
echo version to publish: $TAG_NAME
- name: Setup python
uses: getsentry/[email protected]
id: venv
working-directory: .documentation/
with:
python-version: 3.10.7
cache-dependency-path: requirements.txt
install-cmd: pip install -r requirements.txt

- name: Publish
run: |
chmod +x ./etc/publish_new_version.sh
./etc/publish_new_version.sh $TAG_NAME
9 changes: 3 additions & 6 deletions etc/publish_new_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ upgrade() {
pushd ./packages/core
sed -i 's/"version": "[0-9.]*",/"version": "'$1'",/' package.json
rm -rf node_modules/ package-lock.json dist/ && npm i && npm run prettier-format && npm run build
read -p "Press any key to publish core... " -n1 -s
npm publish
echo Waiting 30s before continuation
sleep 30s
Expand All @@ -35,7 +34,7 @@ do
upgrade ${libs[$ix]} $1 &
done
wait
read -p "Press any key to publish libraries... " -n1 -s

for ix in ${!libs[*]}
do
pushd ./packages/${libs[$ix]}
Expand Down Expand Up @@ -83,7 +82,5 @@ wait

echo "Reminder: "
echo "1) double-check readme code example"
echo "2) recheck that ALL examples work"
echo "3) deploy examples"
echo "4) create release on github"
echo "5) check stackblitz of all examples"
echo "2) deploy examples"
echo "3) check stackblitz of all examples"

0 comments on commit e155514

Please sign in to comment.