Skip to content

Commit 4fc25e9

Browse files
committed
ci(workflows): remove private package registry config for @dependabot
- the required `.npmrc` file clashes with `.npmrc` files created in `publish` workflow - private registry is not required, so a more verbose workaround is not required either Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent cbc2d6c commit 4fc25e9

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66

77
---
88
version: 2
9-
registries:
10-
github:
11-
replaces-base: true
12-
token: ${{ secrets.GH_TOKEN }}
13-
type: npm-registry
14-
url: https://npm.pkg.github.com/flex-development
159
updates:
1610
- package-ecosystem: github-actions
1711
commit-message:
@@ -40,8 +34,6 @@ updates:
4034
labels:
4135
- scope:dependencies
4236
- type:build
43-
registries:
44-
- github
4537
reviewers:
4638
- flex-development/dependabot-review
4739
- flexdevelopment

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ jobs:
5555
target: ${{ steps.version.outputs.result }}
5656
gpr:
5757
needs: metadata
58+
permissions:
59+
packages: write
5860
runs-on: ubuntu-latest
5961
environment:
6062
name: gpr
6163
url: |
6264
${{ format('{0}/{1}/pkgs/npm/{2}', github.server_url, github.repository,
6365
github.event.repository.name) }}
64-
env:
65-
GITHUB_TOKEN: ${{ secrets.PAT_REPO }}
6666
steps:
6767
- id: checkout
6868
name: Checkout ${{ env.TAG }}
@@ -81,7 +81,7 @@ jobs:
8181
name: Publish package
8282
run: npm publish $ARTIFACT ${{ needs.metadata.outputs.dist-tag }}
8383
env:
84-
NODE_AUTH_TOKEN: ${{ env.GITHUB_TOKEN }}
84+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8585
npm:
8686
needs: [metadata, gpr]
8787
runs-on: ubuntu-latest

.npmrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)