fix: import MetadataValue from IVectorStore to resolve type conflict #91
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish on tag | ||
|
Check failure on line 1 in .github/workflows/release-on-tag.yml
|
||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| registry-url: 'https://registry.npmjs.org' | ||
| - name: Install | ||
| run: | | ||
| if [ -f pnpm-lock.yaml ]; then | ||
| npm i -g pnpm && pnpm install --no-frozen-lockfile | ||
| elif [ -f package-lock.json ]; then | ||
| npm ci | ||
| else | ||
| npm install | ||
| fi | ||
| - name: Build | ||
| run: npm run build --if-present | ||
| - name: Test | ||
| run: npm test --if-present | ||
| - name: Publish | ||
| run: | | ||
| pkg_private=$(node -e "try{console.log(require('./package.json').private===true?'true':'false')}catch(e){console.log('false')}") | ||
| if [ "$pkg_private" = "true" ]; then | ||
| echo "package.json is private; skipping publish." | ||
| exit 0 | ||
| fi | ||
| npm publish --provenance --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| name: Publish on tag | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| registry-url: 'https://registry.npmjs.org' | ||
| cache: 'npm' | ||
| - name: Install | ||
| run: | | ||
| if [ -f package-lock.json ]; then | ||
| npm ci | ||
| else | ||
| npm install | ||
| fi | ||
| - name: Build | ||
| run: npm run build --if-present | ||
| - name: Test | ||
| run: npm test --if-present | ||
| - name: Publish | ||
| run: | | ||
| pkg_private=$(node -e "try{console.log(require('./package.json').private===true?'true':'false')}catch(e){console.log('false')}") | ||
| if [ "$pkg_private" = "true" ]; then | ||
| echo "package.json is private; skipping publish." | ||
| exit 0 | ||
| fi | ||
| npm publish --provenance --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||