Skip to content

Commit b91466b

Browse files
committed
chore: update ci
1 parent fdd20bd commit b91466b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/release.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Release
22

3-
on: [workflow_dispatch]
3+
on: [ workflow_dispatch ]
44

55
concurrency: ${{ github.workflow }}-${{ github.ref }}
66

@@ -21,14 +21,22 @@ jobs:
2121
node-version: 17.x
2222
cache: pnpm
2323

24+
- name: Creating .npmrc
25+
run: |
26+
cat << EOF > "$HOME/.npmrc"
27+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
28+
EOF
29+
env:
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
2432
- name: Install Dependencies
2533
run: pnpm install
2634

2735
- name: Publish to npm
2836
id: changesets
2937
uses: changesets/action@v1
3038
with:
31-
publish: pnpm run release
39+
publish: pnpm release
3240
env:
3341
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3442
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"changeset": "changeset",
1717
"version-packages": "changeset version && pnpm i",
1818
"ci:version": "changeset version && pnpm i --no-frozen-lockfile && git add .",
19-
"release": "pnpm run build-test && changeset publish",
19+
"release": "pnpm run build && changeset publish",
2020
"update-deps": "taze -w -r && pnpm i",
2121
"publish": "changeset publish",
2222
"prepublish": "pnpm build"

0 commit comments

Comments
 (0)