Skip to content

Commit c351c45

Browse files
committed
chore: update release script install settings
1 parent fee01ea commit c351c45

File tree

5 files changed

+33
-14
lines changed

5 files changed

+33
-14
lines changed

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
id: changesets
3030
uses: changesets/action@v1
3131
with:
32-
version: yarn version:packages
33-
34-
# This expects you to have a script called release which does a build for your packages and calls changeset publish
3532
title: "chore: release"
3633
commit: "chore: release"
34+
# This expects you to have a script called release / version:packages
35+
# which does a build for your packages and calls changeset publish
3736
publish: yarn release
37+
version: yarn version:packages
3838

3939
env:
4040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

components/button/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@spectrum-css/button",
3-
"version": "14.1.2",
3+
"version": "14.1.3",
44
"description": "The Spectrum CSS button component",
55
"license": "Apache-2.0",
66
"author": "Adobe",

lint-staged.config.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@ module.exports = {
66
"*.{js,json}": [
77
"eslint --fix --cache --no-error-on-unmatched-pattern --quiet"
88
],
9-
"package.json": (files) => [
10-
"yarn constraints --fix",
11-
`eslint --fix --cache --no-error-on-unmatched-pattern --quiet ${files.join(" ")}`,
9+
"*.{md,mdx}": [
10+
"prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
11+
"markdownlint --config .markdownlint.json --fix"
1212
],
13+
"package.json": () => ([
14+
"yarn constraints --fix",
15+
"yarn install --refresh-lockfile",
16+
"git add yarn.lock"
17+
]),
1318
"dist/*.css": [
1419
"prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc"
1520
],
1621
"components/*/dist/metadata.json": (files) => {
1722
return [
1823
...(files.map(file => `pajv test --valid -s ./schemas/metadata.schema.json -d "${file}"`) ?? []),
1924
];
20-
},
21-
"*.{md,mdx}": [
22-
"prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
23-
"markdownlint --config .markdownlint.json --fix"
24-
]
25+
}
2526
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"tester": "cross-env NODE_ENV=development nx run storybook:test:scope",
5454
"validate": "yarn validator tag:component",
5555
"validator": "nx run-many --target validate --verbose --projects",
56-
"version:packages": "changeset version && yarn constraints --fix && yarn install"
56+
"version:packages": "yarn config set -H enableImmutableInstalls false && changeset version && git add . && yarn lint-staged"
5757
},
5858
"workspaces": [
5959
"components/*",

yarn.lock

+19-1
Original file line numberDiff line numberDiff line change
@@ -4101,7 +4101,25 @@ __metadata:
41014101
languageName: unknown
41024102
linkType: soft
41034103

4104-
"@spectrum-css/button@npm:14.1.2, @spectrum-css/button@workspace:components/button":
4104+
"@spectrum-css/button@npm:14.1.2":
4105+
version: 14.1.2
4106+
resolution: "@spectrum-css/button@npm:14.1.2"
4107+
peerDependencies:
4108+
"@spectrum-css/icon": ">=9.0.0 <10.0.0"
4109+
"@spectrum-css/progresscircle": ">=5.0.0 <6.0.0"
4110+
"@spectrum-css/tokens": ">=16.0.0 <17.0.0"
4111+
peerDependenciesMeta:
4112+
"@spectrum-css/icon":
4113+
optional: true
4114+
"@spectrum-css/progresscircle":
4115+
optional: true
4116+
"@spectrum-css/tokens":
4117+
optional: true
4118+
checksum: 10c0/1eea83de053fbd75c66b91ee25efb94896df9f7802e4fe10a38d6ba07cb907d44caa32576f6540de3c56abf3539f2d6d179fde4826eabe77c4ff9734efb82048
4119+
languageName: node
4120+
linkType: hard
4121+
4122+
"@spectrum-css/button@workspace:components/button":
41054123
version: 0.0.0-use.local
41064124
resolution: "@spectrum-css/button@workspace:components/button"
41074125
dependencies:

0 commit comments

Comments
 (0)