Skip to content

Commit a42ef54

Browse files
committed
chore: update CI configuration and package scripts
- Changed the `ci:publish` script to use `changeset publish`. - Added `ci:version` script for versioning with changesets. - Updated access level in changeset config from restricted to public. - Modified GitHub Actions workflow to use pnpm's frozen lockfile and added NODE_AUTH_TOKEN for npm authentication.
1 parent cb8ccfa commit a42ef54

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"commit": false,
55
"fixed": [],
66
"linked": [],
7-
"access": "restricted",
7+
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
1010
"ignore": []

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
- main
66
env:
77
CI: true
8-
PNPM_CACHE_FOLDER: .pnpm-store
98
jobs:
109
version:
1110
timeout-minutes: 15
@@ -15,18 +14,18 @@ jobs:
1514
uses: actions/checkout@v6
1615
with:
1716
fetch-depth: 0
17+
- name: install pnpm
18+
uses: pnpm/action-setup@v4
19+
with:
20+
version: 9.4.0
1821
- name: setup node.js
1922
uses: actions/setup-node@v6
2023
with:
2124
node-version: 24
22-
- name: install pnpm
23-
run: npm i pnpm@9.4.0 -g
24-
- name: Setup npmrc
25-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
26-
- name: setup pnpm config
27-
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
25+
cache: pnpm
26+
registry-url: https://registry.npmjs.org
2827
- name: install dependencies
29-
run: pnpm install --no-frozen-lockfile
28+
run: pnpm install --frozen-lockfile
3029
- name: create and publish versions
3130
uses: changesets/action@v1
3231
with:
@@ -36,3 +35,5 @@ jobs:
3635
publish: pnpm ci:publish
3736
env:
3837
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
],
1212
"scripts": {
1313
"build": "tsup --treeshake",
14-
"ci:publish": "pnpm publish --no-git-checks",
14+
"ci:publish": "changeset publish",
15+
"ci:version": "changeset version",
1516
"clean": "rm -rf node_modules && rm -rf dist",
1617
"dev": "tsup --watch",
1718
"format": "prettier --write src/**/*.ts",

0 commit comments

Comments
 (0)