mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-05-23 17:19:46 +02:00
fix: remove environment gates and add NPM_TOKEN to publish step
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user