Skip to content

Commit 57b7866

Browse files
committed
fix workflow
1 parent 9e2b48a commit 57b7866

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
commit: "chore(release): version package"
3131
title: "chore(release): version package"
32-
publish: pnpm ci:release
32+
publish: pnpm release:registry
3333
env:
3434
JSREPO_TOKEN: ${{ secrets.JSREPO_TOKEN }}
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ And finally let's modify our `jsrepo-build-config.json` file to use the version
263263

264264
Finally let's create a workflow so that we can publish a new version of our registry whenever there are changesets.
265265

266+
> If you are publishing from a workflow make sure to create a token [here](https://jsrepo.com/account/access-tokens/new) and add it with the name `JSREPO_TOKEN` under `Settings / Secrets and variables / Actions`
267+
266268
`.github/workflows/publish.yml`
267269
```yaml
268270
name: Publish
@@ -296,7 +298,7 @@ jobs:
296298
with:
297299
commit: "chore(release): version package"
298300
title: "chore(release): version package"
299-
publish: pnpm ci:release
301+
publish: pnpm release:registry
300302
env:
301303
JSREPO_TOKEN: ${{ secrets.JSREPO_TOKEN }} # !! DON'T FORGET THIS !!
302304
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)