Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: semantic-release
on:
push:
branches:
- main

permissions:
contents: write

jobs:
semantic-release:
name: semantic-release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false

- name: setup-node
uses: actions/setup-node@v4
with:
node-version: "22.13.1"

- name: create-archives
run: |
TEMP_DIR=$(mktemp -d)
tar --warning=no-file-changed \
--exclude=".git" \
--exclude="/.git" \
--exclude="node_modules" \
-czf "$TEMP_DIR/action-main-release-trials.tar.gz" .
zip -r "$TEMP_DIR/action-main-release-trials.zip" . \
-x ".git" "node_modules"
mv "$TEMP_DIR"/*.{tar.gz,zip} .
rm -rf "$TEMP_DIR"

- name: install-dependencies
run: npm ci

- name: verify-dependencies-integrity
run: npm audit signatures

- name: create-semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ helm-chart/charts/rag-0.0.1.tgz
pyrightconfig.json
notes*.md
notes.md

# Node Modules
node_modules/


# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
Loading
Loading