You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-26Lines changed: 38 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ This action for [Changesets](https://github.com/changesets/changesets) creates a
21
21
- published - A boolean value to indicate whether a publishing has happened or not
22
22
- publishedPackages - A JSON array to present the published packages. The format is `[{"name": "@xx/xx", "version": "1.2.0"}, {"name": "@xx/xy", "version": "0.8.9"}]`
23
23
24
-
### Example workflow:
24
+
### Example workflow
25
25
26
26
#### Without Publishing
27
27
@@ -43,15 +43,18 @@ jobs:
43
43
runs-on: ubuntu-latest
44
44
steps:
45
45
- name: Checkout Repo
46
-
uses: actions/checkout@v3
46
+
uses: actions/checkout@v6
47
47
48
-
- name: Setup Node.js 20
49
-
uses: actions/setup-node@v3
48
+
- name: Setup pnpm
49
+
uses: pnpm/action-setup@v6
50
+
51
+
- name: Setup Node.js 26
52
+
uses: actions/setup-node@v6
50
53
with:
51
-
node-version: 20
54
+
node-version: 26
52
55
53
56
- name: Install Dependencies
54
-
run: yarn
57
+
run: pnpm install --frozen-lockfile
55
58
56
59
- name: Create Release Pull Request
57
60
uses: changesets/action@v1
@@ -77,22 +80,25 @@ jobs:
77
80
runs-on: ubuntu-latest
78
81
steps:
79
82
- name: Checkout Repo
80
-
uses: actions/checkout@v3
83
+
uses: actions/checkout@v6
84
+
85
+
- name: Setup pnpm
86
+
uses: pnpm/action-setup@v6
81
87
82
-
- name: Setup Node.js 20.x
83
-
uses: actions/setup-node@v3
88
+
- name: Setup Node.js 26
89
+
uses: actions/setup-node@v6
84
90
with:
85
-
node-version: 20.x
91
+
node-version: 26
86
92
87
93
- name: Install Dependencies
88
-
run: yarn
94
+
run: pnpm install --frozen-lockfile
89
95
90
96
- name: Create Release Pull Request or Publish to npm
91
97
id: changesets
92
98
uses: changesets/action@v1
93
99
with:
94
100
# This expects you to have a script called release which does a build for your packages and calls changeset publish
95
-
publish: yarn release
101
+
publish: pnpm release
96
102
env:
97
103
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
98
104
@@ -104,7 +110,7 @@ jobs:
104
110
105
111
By default the GitHub Action creates a `.npmrc` file with the following content:
0 commit comments