Skip to content

Commit 3a01696

Browse files
committed
Another release attempt
1 parent 612f1cf commit 3a01696

File tree

4 files changed

+49
-7
lines changed

4 files changed

+49
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ jobs:
2626
- name: Build
2727
run: npm run build
2828

29-
- name: Create Release Pull Request or Publish to npm
29+
- name: Create Release Pull Request or Publish
3030
id: changesets
3131
uses: changesets/action@v1
3232
with:
33+
# Note: pnpm install after versioning is necessary to refresh lockfile
34+
version: npm run version
3335
publish: npm run release:local
36+
commit: '[ci] release'
37+
title: '[ci] release'
3438
env:
39+
# Needs access to push to main
3540
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
# Needs access to publish to npm
3642
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

package-lock.json

Lines changed: 39 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
"lint": "turbo run lint",
1515
"format": "turbo run format",
1616
"test": "turbo run test",
17+
"version": "changeset version",
1718
"release": "gh workflow run release",
18-
"release:local": "turbo run build && npx changeset version && npx changeset publish"
19+
"release:local": "turbo run build && changeset publish"
1920
},
2021
"devDependencies": {
22+
"@changesets/changelog-github": "^0.5.0",
2123
"@changesets/cli": "^2.27.1",
2224
"eslint": "^8.57.0",
2325
"eslint-config-custom": "^0.0.0",

0 commit comments

Comments
 (0)