File tree 6 files changed +50
-5
lines changed
6 files changed +50
-5
lines changed Original file line number Diff line number Diff line change 35
35
env :
36
36
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
37
PROTECTED_BRANCH_REVIEWER_TOKEN : ${{ secrets.CELTRA_DEPLOYER_GITHUB_TOKEN }}
38
- NPM_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
- run : npm run canary
38
+ NPM_TOKEN : ${{ secrets.NPMJS_WRITE_TOKEN }}
39
+ run : bin/release- canary
40
40
41
41
- name : Prepare repository
42
42
if : github.ref == 'refs/heads/master'
47
47
env :
48
48
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
49
PROTECTED_BRANCH_REVIEWER_TOKEN : ${{ secrets.CELTRA_DEPLOYER_GITHUB_TOKEN }}
50
- NPM_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
- run : npm run release
50
+ NPM_TOKEN : ${{ secrets.NPMJS_WRITE_TOKEN }}
51
+ run : bin/ release-packages
Original file line number Diff line number Diff line change 1
- @celtra:registry = https://npm.pkg.github.com
1
+ registry = https://nexus.celtra.com/repository/npm/
2
+ always-auth = true
3
+ //nexus.celtra.com/repository/npm/:_auth = YnVpbGQ6 enljN21 nYTVlYmRYSFE5 dWNmZ3 BoaGdrN2 NnYzlDS1 Uzd2 tw
4
+ devdir = /cache/npm
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eu -o pipefail
3
+
4
+ MODULE_ROOT=$( dirname $( dirname $( readlink -e $0 ) ) )
5
+ cd " $MODULE_ROOT "
6
+
7
+ if [ -z " $GH_TOKEN " ]; then
8
+ echo " GH_TOKEN is not set"
9
+ exit 1
10
+ fi
11
+
12
+ " ${MODULE_ROOT} /bin/set-npm-auth-token"
13
+
14
+ npm run canary
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eu -o pipefail
3
+
4
+ MODULE_ROOT=$( dirname $( dirname $( readlink -e $0 ) ) )
5
+ cd " $MODULE_ROOT "
6
+
7
+ if [ -z " $GH_TOKEN " ]; then
8
+ echo " GH_TOKEN is not set"
9
+ exit 1
10
+ fi
11
+
12
+ " ${MODULE_ROOT} /bin/set-npm-auth-token"
13
+
14
+ npm run release
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eu -o pipefail
3
+
4
+ # Switch to $HOME, because `npm set` can only be done outside of a workspace.
5
+ pushd $HOME > /dev/null
6
+
7
+ # Since we use Nexus registry with auth by default,
8
+ # $NPM_TOKEN is not used with `lerna` (used by `auto`),
9
+ # so we need to manually set auth token.
10
+ npm set " //registry.npmjs.org/:_authToken=$NPM_TOKEN "
Original file line number Diff line number Diff line change 97
97
"plugins" : [
98
98
" npm"
99
99
]
100
+ },
101
+ "publishConfig" : {
102
+ "registry" : " https://registry.npmjs.org" ,
103
+ "access" : " restricted"
100
104
}
101
105
}
You can’t perform that action at this time.
0 commit comments