Skip to content

Commit 60f625a

Browse files
committed
chore: sub-packages need publishConfig
1 parent ff3df25 commit 60f625a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/deploy.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
name: Build and publish library
22

3-
on:
4-
push:
5-
branches: ['main']
6-
env:
7-
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
3+
on: push
84

95
permissions:
106
actions: read
117
contents: write
128
packages: write
139
id-token: write
1410

11+
env:
12+
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
1514
jobs:
1615
build:
1716
if: "!contains(github.event.head_commit.message, '[docs]')"
1817
runs-on: ubuntu-latest
19-
env:
20-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2118
steps:
2219
- uses: actions/checkout@v4
2320
- run: corepack enable

libs/next-logger/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"license": "MIT",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
7+
"publishConfig": {
8+
"access": "public",
9+
"registry": "https://npm.pkg.github.com/"
10+
},
711
"files": [
812
"dist"
913
],

0 commit comments

Comments
 (0)