ci: use PACKAGES_TOKEN for packages auth

This commit is contained in:
thecodrr
2022-07-15 10:55:38 +05:00
parent 52a2c60f51
commit a4683aa4c2
2 changed files with 8 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ jobs:
persist-credentials: false
- name: Setup npmrc
run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PERSONAL_GH_TOKEN}}" > .npmrc
run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PACKAGES_TOKEN}}" > .npmrc
- name: Use Node.js 16.x
uses: actions/setup-node@v2.1.5

View File

@@ -1,5 +1,9 @@
name: Build/release
permissions:
packages: read
contents: read
on: workflow_dispatch
jobs:
@@ -12,6 +16,9 @@ jobs:
with:
persist-credentials: false
- name: Setup npmrc
run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PACKAGES_TOKEN}}" > .npmrc
- name: Use Node.js 16.x
uses: actions/setup-node@v2.1.5
with: