File tree Expand file tree Collapse file tree 5 files changed +24
-1
lines changed Expand file tree Collapse file tree 5 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
---
8
8
version : 2
9
+ registries :
10
+ github :
11
+ replaces-base : true
12
+ token : ${{ secrets.PAT_BOT }}
13
+ type : npm-registry
14
+ url : https://npm.pkg.github.com/flex-development
9
15
updates :
10
16
- package-ecosystem : github-actions
11
17
commit-message :
@@ -28,6 +34,8 @@ updates:
28
34
labels :
29
35
- scope:dependencies
30
36
- type:build
37
+ registries :
38
+ - github
31
39
reviewers :
32
40
- flex-development/dependabot-review
33
41
- flexdevelopment
Original file line number Diff line number Diff line change 55
55
gpr :
56
56
needs : metadata
57
57
permissions :
58
+ contents : write
58
59
packages : write
59
60
runs-on : ubuntu-latest
60
61
environment :
68
69
uses : actions/checkout@v3.2.0
69
70
with :
70
71
ref : ${{ format('refs/tags/{0}', env.TAG) }}
72
+ - id : npmrc-cleanup
73
+ name : Remove stale .npmrc file
74
+ run : rm .npmrc
71
75
- id : npmrc
72
76
name : Setup .npmrc file
73
77
uses : actions/setup-node@v3.5.1
83
87
NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
84
88
npm :
85
89
needs : [metadata, gpr]
90
+ permissions :
91
+ contents : write
86
92
runs-on : ubuntu-latest
87
93
environment :
88
94
name : npm
95
101
uses : actions/checkout@v3.2.0
96
102
with :
97
103
ref : ${{ format('refs/tags/{0}', env.TAG) }}
104
+ - id : npmrc-cleanup
105
+ name : Remove stale .npmrc file
106
+ run : rm .npmrc
98
107
- id : npmrc
99
108
name : Setup .npmrc file
100
109
uses : actions/setup-node@v3.5.1
Original file line number Diff line number Diff line change
1
+ # https://docs.npmjs.com/cli/configuring-npm/npmrc
2
+
3
+ @flex-development:registry = https://npm.pkg.github.com
4
+ //npm.pkg.github.com/:_authToken = ${ PAT_BOT }
5
+ //npm.pkg.github.com/:always-auth = true
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ nodeLinker: node-modules
21
21
npmScopes :
22
22
flex-development :
23
23
npmAlwaysAuth : true
24
- npmAuthToken : ${GITHUB_TOKEN}
24
+ npmAuthToken : ${GITHUB_TOKEN:-$PAT_BOT }
25
25
npmRegistryServer : https://npm.pkg.github.com
26
26
27
27
patchFolder : ./patches
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ Follow the steps below to setup your local development environment:
101
101
| ` GITHUB_TOKEN ` |
102
102
| ` NODE_ENV ` |
103
103
| ` NODE_NO_WARNINGS ` |
104
+ | ` PAT_BOT ` |
104
105
| ` ZSH_DOTENV_FILE ` |
105
106
106
107
#### GitHub Actions
You can’t perform that action at this time.
0 commit comments