fix: remove environment gates and add NPM_TOKEN to publish step

This commit is contained in:
ezl-keygraph
2026-03-18 16:09:40 +05:30
parent 762795c111
commit a513aad161
2 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -60,7 +60,6 @@ jobs:
name: Build Docker (${{ matrix.platform }})
needs: preflight
if: needs.preflight.outputs.should_release == 'true'
environment: release-publish
permissions:
contents: read
strategy:
@@ -202,6 +201,8 @@ jobs:
- name: Publish npm package
working-directory: apps/cli
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
if npm view "@keygraph/shannon@${{ needs.preflight.outputs.version }}" version 2>/dev/null; then
echo "Version already published, skipping"
-2
View File
@@ -19,8 +19,6 @@ jobs:
rollback:
name: Roll back npm, Docker, and GitHub release latest
runs-on: ubuntu-latest
environment: release-rollback
steps:
- name: Checkout tags
uses: actions/checkout@v6