Skip to content

Commit 049a4bc

Browse files
committed
refactor: remove GitHub Packages publishing
- Remove GitHub Packages publishing steps from workflow - Simplify permissions (remove packages: write) - Focus on npm as the primary and only registry - GitHub Packages not needed for public open-source packages - npm provides sufficient distribution with provenance
1 parent b6aa99e commit 049a4bc

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
environment: npm-publish
2222
permissions:
2323
contents: read
24-
packages: write
2524
id-token: write
2625

2726
steps:
@@ -62,28 +61,3 @@ jobs:
6261
env:
6362
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6463
continue-on-error: true
65-
66-
# Optional: Also publish to GitHub Packages
67-
- name: Setup Node.js for GitHub Packages
68-
if: github.event_name == 'release'
69-
uses: actions/setup-node@v4
70-
with:
71-
node-version: '18'
72-
registry-url: 'https://npm.pkg.github.com'
73-
scope: '@envguard'
74-
75-
- name: Publish @envguard/cli to GitHub Packages
76-
if: github.event_name == 'release'
77-
working-directory: ./packages/cli
78-
run: pnpm publish --no-git-checks --access public
79-
env:
80-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81-
continue-on-error: true
82-
83-
- name: Publish @envguard/runner-node to GitHub Packages
84-
if: github.event_name == 'release'
85-
working-directory: ./packages/runner-node
86-
run: pnpm publish --no-git-checks --access public
87-
env:
88-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89-
continue-on-error: true

0 commit comments

Comments
 (0)