You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 26, 2026. It is now read-only.
I looked the docs and search a lot, but couldn't find any solution for this issue:
I'm running the build step creating the .npmrc file
Currently the Build Step works well. But the deploy fails with the error bellow: Error: The deployment failed: HTTP status client error (401 Unauthorized) for url ([https://npm.pkg.github.com/@](https://npm.pkg.github.com/@<company>/<private-package-name>)
Note: I tried with permissions.package: read and permissions.package: write usong the ${{secrets.GITHUB_TOKEN}} but haven't worked since the package is outside the repo so I changed to use a PAT
Part of my github actions file:
jobs:
deploy:
name: Deployenvironment: Productionruns-on: ubuntu-latestpermissions:
packages: write # Needed to install private packagesid-token: write # Needed for auth with Deno Deploycontents: read # Needed to clone the repository....
- name: Build steprun: | cd backend/deno echo "@<company>:registry=https://npm.pkg.github.com/" > .npmrc echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACCESS_TOKEN }}" >> .npmrc echo "Caching the index.ts" && deno cache index.ts --allow-import echo "Running the build" && deno task build --environment production
- name: Upload to Deno Deployuses: denoland/deployctl@v1with:
project: "<project name>"entrypoint: "index.ts"# 📝 Update the entrypointroot: "./backend/deno"# 📝 Update the root
I looked the docs and search a lot, but couldn't find any solution for this issue:
I'm running the build step creating the .npmrc file
Currently the
Build Stepworks well. But the deploy fails with the error bellow:Error: The deployment failed: HTTP status client error (401 Unauthorized) for url ([https://npm.pkg.github.com/@](https://npm.pkg.github.com/@<company>/<private-package-name>)Note: I tried with
permissions.package: readandpermissions.package: writeusong the${{secrets.GITHUB_TOKEN}}but haven't worked since the package is outside the repo so I changed to use a PATPart of my github actions file: