Skip to content

Commit 808a1bb

Browse files
committed
chore: add changeset
1 parent f041188 commit 808a1bb

File tree

7 files changed

+1687
-63
lines changed

7 files changed

+1687
-63
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/CI.yml

+6-14
Original file line numberDiff line numberDiff line change
@@ -482,20 +482,12 @@ jobs:
482482
- name: List packages
483483
run: ls -R ./npm
484484
shell: bash
485-
- name: Publish
486-
run: |
487-
npm config set provenance true
488-
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
489-
then
490-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
491-
npm publish --access public
492-
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
493-
then
494-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
495-
npm publish --tag next --access public
496-
else
497-
echo "Not a release, skipping publish"
498-
fi
485+
- name: Create Release Pull Request or Publish to npm
486+
id: changesets
487+
uses: changesets/action@v1
488+
with:
489+
version: pnpm run bump
490+
publish: npm run release
499491
env:
500492
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
501493
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@
4242
"test": "ava",
4343
"universal": "napi universal",
4444
"version": "napi version"
45+
},
46+
"dependencies": {
47+
"@changesets/cli": "^2.27.1"
4548
}
4649
}

0 commit comments

Comments
 (0)