Skip to content

Commit 68a4e8d

Browse files
committed
Add npmrc at the root of the directory (#983)
1 parent 3acde11 commit 68a4e8d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- 'pre-release-beta/**'
88
- 'beta/**'
99
- 'prototype-beta/'
10+
env:
11+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1012

1113
jobs:
1214
publish-npm:
@@ -16,14 +18,17 @@ jobs:
1618
- uses: actions/checkout@v3
1719
- uses: actions/setup-node@v3
1820
with:
19-
node-version: 16
21+
node-version: '16.x'
2022
registry-url: https://registry.npmjs.org/
2123
- name: Install dependencies
2224
run: yarn
23-
- name: Creating .npmrc
25+
- name: Check if npmrc was created
26+
run: ls -lah
27+
- name: re create .npmrc file
2428
run: |
2529
cat << EOF > "$HOME/.npmrc"
2630
//registry.npmjs.org/:_authToken=$NPM_TOKEN
31+
always-auth = true
2732
EOF
2833
env:
2934
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -35,3 +40,4 @@ jobs:
3540
env:
3641
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3742
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/instant-meilisearch/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"bugs": {
99
"url": "https://github.com/meilisearch/instant-meilisearch/issues"
1010
},
11-
"repository": "meilisearch/instant-meilisearch",
11+
"repository": "https://github.com/meilisearch/instant-meilisearch/tree/beta/lerna-migration/packages/instant-meilisearch",
12+
"publishConfig": {
13+
"access": "public"
14+
},
1215
"author": {
1316
"name": "Meilisearch",
1417
"url": "https://meilisearch.com"

0 commit comments

Comments
 (0)