Skip to content

Commit 977788e

Browse files
committed
build: github actions fix
1 parent 3847b9a commit 977788e

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,21 @@ jobs:
2525
with:
2626
version: 9
2727

28-
- name: Create .npmrc file
29-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
28+
- name: Install Dependencies
29+
run: pnpm install --frozen-lockfile
3030

31-
- name: Create Release Pull Request
31+
- name: Creating .npmrc
32+
run: |
33+
cat << EOF > "$HOME/.npmrc"
34+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
35+
EOF
36+
env:
37+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
39+
- name: Create Release Pull Request or Publish to npm
3240
uses: changesets/action@v1
3341
with:
34-
version: pnpm packages-version
35-
publish: pnpm publish
42+
publish: pnpm release
3643
env:
3744
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3845
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test:watch": "turbo run test:watch",
1111
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
1212
"packages-version": "changeset version",
13-
"publish": "changeset publish"
13+
"release": "changeset publish"
1414
},
1515
"devDependencies": {
1616
"@changesets/cli": "^2.27.9",

packages/notion-to-jsx/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "notion-to-jsx",
33
"version": "0.0.0",
44
"description": "",
5+
"private": true,
56
"repository": {
67
"type": "git",
78
"url": "https://github.com/01-binary/notion-to-jsx",

packages/notion-to-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "notion-to-utils",
33
"version": "0.4.15",
44
"description": "",
5+
"private": false,
56
"repository": {
67
"type": "git",
78
"url": "https://github.com/01-binary/notion-to-jsx",

0 commit comments

Comments
 (0)