Skip to content

Commit 828bfac

Browse files
authored
ci(publish): fix publish config (#119)
1 parent c802668 commit 828bfac

File tree

9 files changed

+38
-2
lines changed

9 files changed

+38
-2
lines changed

.github/actions/setup-and-build/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ runs:
1414
uses: actions/setup-node@v4
1515
with:
1616
node-version: ${{ inputs.node-version }}
17+
registry-url: 'https://registry.npmjs.org'
1718

1819
- name: Install pnpm
1920
uses: pnpm/action-setup@v4

.github/workflows/publish-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: >
3131
pnpm --recursive
3232
--filter "@tutorialkit/*"
33-
exec pnpm publish --provenance
33+
exec pnpm publish --provenance --access public
3434
env:
3535
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3636

@@ -103,6 +103,6 @@ jobs:
103103
pnpm --recursive
104104
--filter tutorialkit
105105
--filter create-tutorial
106-
exec pnpm publish --provenance
106+
exec pnpm publish --provenance --access public
107107
env:
108108
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/astro/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"bugs": "https://github.com/stackblitz/tutorialkit/issues",
88
"homepage": "https://github.com/stackblitz/tutorialkit",
99
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stackblitz/tutorialkit.git",
13+
"directory": "packages/astro"
14+
},
1015
"types": "./dist/index.d.ts",
1116
"exports": {
1217
".": "./dist/index.js",

packages/cli/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"bugs": "https://github.com/stackblitz/tutorialkit/issues",
88
"homepage": "https://github.com/stackblitz/tutorialkit",
99
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stackblitz/tutorialkit.git",
13+
"directory": "packages/cli"
14+
},
1015
"bin": {
1116
"tutorialkit": "dist/index.js"
1217
},

packages/components/react/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"bugs": "https://github.com/stackblitz/tutorialkit/issues",
88
"homepage": "https://github.com/stackblitz/tutorialkit",
99
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stackblitz/tutorialkit.git",
13+
"directory": "packages/components/react"
14+
},
1015
"types": "./dist/index.d.ts",
1116
"exports": {
1217
".": {

packages/create-tutorial/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"bugs": "https://github.com/stackblitz/tutorialkit/issues",
88
"homepage": "https://github.com/stackblitz/tutorialkit",
99
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stackblitz/tutorialkit.git",
13+
"directory": "packages/create-tutorial"
14+
},
1015
"bin": {
1116
"create-tutorial": "./dist/index.js"
1217
},

packages/runtime/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"bugs": "https://github.com/stackblitz/tutorialkit/issues",
88
"homepage": "https://github.com/stackblitz/tutorialkit",
99
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stackblitz/tutorialkit.git",
13+
"directory": "packages/runtime"
14+
},
1015
"types": "./dist/index.d.ts",
1116
"exports": {
1217
".": "./dist/index.js",

packages/theme/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"bugs": "https://github.com/stackblitz/tutorialkit/issues",
88
"homepage": "https://github.com/stackblitz/tutorialkit",
99
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stackblitz/tutorialkit.git",
13+
"directory": "packages/theme"
14+
},
1015
"types": "./dist/index.d.ts",
1116
"exports": {
1217
".": "./dist/index.js"

packages/types/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"bugs": "https://github.com/stackblitz/tutorialkit/issues",
88
"homepage": "https://github.com/stackblitz/tutorialkit",
99
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stackblitz/tutorialkit.git",
13+
"directory": "packages/types"
14+
},
1015
"types": "./dist/index.d.ts",
1116
"exports": {
1217
".": "./dist/index.js"

0 commit comments

Comments
 (0)