Skip to content

Commit

Permalink
temporary release test
Browse files Browse the repository at this point in the history
  • Loading branch information
dani2112 committed Jan 24, 2025
1 parent e49ea8a commit bff4501
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- 'v*' # Trigger on version tags
branches:
- 'feature/testing-concept' # Add temporary trigger for testing
workflow_dispatch: # Allows manual triggering

jobs:
Expand All @@ -22,31 +24,28 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
cache-dependency-path: './rag-ui/package-lock.json' # or package.json if you prefer
cache-dependency-path: './rag-ui/package-lock.json'

- name: Install dependencies
working-directory: ./rag-ui
run: npm ci

# -----------------------------
# Build step to generate 'dist/'
# -----------------------------
- name: Build the library
working-directory: ./rag-ui
run: npm run build

# -----------------------------
# Dry-run to check what gets published
# -----------------------------
# Add condition to only run dry-run for all triggers
- name: Dry run npm publish
working-directory: ./rag-ui
run: npm publish --dry-run --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Add condition to only run actual publish for tag pushes
# Uncomment for the real publish
# - name: Publish to NPM
# if: startsWith(github.ref, 'refs/tags/v') # Only run on version tags
# working-directory: ./rag-ui
# run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit bff4501

Please sign in to comment.