Skip to content

Commit 81fb0c7

Browse files
authored
chore: add changeset (#2)
Add changeset for versioning Update ci to release
1 parent d905ec8 commit 81fb0c7

File tree

5 files changed

+616
-11
lines changed

5 files changed

+616
-11
lines changed

.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": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/ci.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,13 @@ jobs:
7070
${{ runner.os }}-
7171
- run: npm i -g pnpm
7272
- run: pnpm i
73-
- run: |
74-
git config user.name "${{ github.actor }}"
75-
git config user.email "${{ github.actor}}@users.noreply.github.com"
76-
pnpm version patch
77-
- run: |
78-
echo "//registry.npmjs.org/:_authToken=${{ secrets.REPO_NPM_TOKEN }}" > .npmrc
79-
pnpm config set access public
80-
pnpm publish
81-
- run: git push origin main --tags
73+
- run: pnpm changeset version
74+
- name: Publish Packages
75+
continue-on-error: true
8276
env:
83-
GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
77+
# setting the "npm_config_//registry.npmjs.org/:_authToken" env variable directly doesn't work.
78+
# probably "pnpm release" doesn't pass auth tokens to child processes
79+
NPM_TOKEN: ${{ secrets.REPO_NPM_TOKEN }}
80+
run: |
81+
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" # pnpm config set is broken
82+
pnpm publish --dry-run

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# ts-blank-loader
2+
3+
## 0.2.0
4+
5+
### Minor Changes
6+
7+
- Add TSX compilation support

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-blank-loader",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Loader for ts-blank-space - a small, fast, pure JavaScript type-stripper that uses the official TypeScript parser.",
55
"publishConfig": {
66
"access": "public"
@@ -23,6 +23,7 @@
2323
},
2424
"license": "MIT",
2525
"devDependencies": {
26+
"@changesets/cli": "^2.27.8",
2627
"@egoist/prettier-config": "1.0.0",
2728
"prettier": "2.8.4",
2829
"tsup": "6.6.3",

0 commit comments

Comments
 (0)