Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
Fix npm publish workflow - remove GitHub Packages job, add permissions
trohitg099c30d050ed
diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.ymlindex b889ee79..bef5814b 100644--- a/.github/workflows/npm-publish.yml+++ b/.github/workflows/npm-publish.yml@@ -1,5 +1,4 @@-# Publish to npm registry when a release is created-# Also publishes to GitHub Packages as a mirror+# Publish to npm registry when a version tag is pushed## NOTE: npm now requires Granular Access Tokens (classic tokens revoked)# - Granular tokens require 2FA and expire after 90 days max@@ -24,45 +23,29 @@ on:jobs:publish-npm:runs-on: ubuntu-latest+ permissions:+ contents: read+ id-token: writesteps:- - uses: actions/checkout@v4+ - name: Checkout+ uses: actions/checkout@v4- - uses: actions/setup-node@v4+ - name: Setup Node.js+ uses: actions/setup-node@v4with:node-version: '20'registry-url: 'https://registry.npmjs.org'- - name: Install dependencies+ - name: Install root dependenciesrun: npm ci+ - name: Install client dependencies+ run: cd client && npm ci+- name: Build client- run: cd client && npm ci && npm run build+ run: cd client && npm run build- name: Publish to npmrun: npm publish --access publicenv:NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}-- publish-gpr:- runs-on: ubuntu-latest- permissions:- contents: read- packages: write- steps:- - uses: actions/checkout@v4-- - uses: actions/setup-node@v4- with:- node-version: '20'- registry-url: 'https://npm.pkg.github.com/'-- - name: Install dependencies- run: npm ci-- - name: Build client- run: cd client && npm ci && npm run build-- - name: Publish to GitHub Packages- run: npm publish- env:- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}