Skip to content

Fix lint warnings for AgentOS types #89

Fix lint warnings for AgentOS types

Fix lint warnings for AgentOS types #89

name: Publish on tag

Check failure on line 1 in .github/workflows/release-on-tag.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-on-tag.yml

Invalid workflow file

(Line: 45, Col: 1): 'name' is already defined, (Line: 47, Col: 1): 'on' is already defined, (Line: 52, Col: 1): 'permissions' is already defined, (Line: 56, Col: 1): 'jobs' is already defined
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 }}