Skip to content

Commit 06a6d58

Browse files
committed
Merge branch 'master' into wjh/wtr-files
2 parents 2a27435 + 98a949c commit 06a6d58

File tree

34 files changed

+910
-1254
lines changed

34 files changed

+910
-1254
lines changed

.github/workflows/release.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: Manual Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
bump:
7+
description: 'Version bump type (used if release_version is empty)'
8+
type: choice
9+
options:
10+
- major
11+
- minor
12+
- patch
13+
- prerelease
14+
required: false
15+
release_version:
16+
description: 'Semver version to release (must be > current root version)'
17+
required: false
18+
19+
permissions:
20+
contents: write
21+
pull-requests: write
22+
id-token: write
23+
packages: write
24+
25+
jobs:
26+
release:
27+
# Allow only on master, spring*, summer*, winter*;
28+
if: ${{ github.repository_owner == 'salesforce' && (github.ref_name == 'master' || startsWith(github.ref_name, 'spring') || startsWith(github.ref_name, 'summer') || startsWith(github.ref_name, 'winter')) }}
29+
environment: release
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
token: ${{ secrets.WORKFLOW_PAT }}
37+
persist-credentials: false
38+
39+
- name: Setup Node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: '20'
43+
registry-url: 'https://registry.npmjs.org'
44+
cache: 'yarn'
45+
46+
- name: Install dependencies
47+
run: yarn install --frozen-lockfile
48+
49+
- name: Resolve version input
50+
id: resolve_version
51+
run: |
52+
RELEASE_VERSION='${{ inputs.release_version }}'
53+
if [ -z "$RELEASE_VERSION" ]; then
54+
RELEASE_VERSION='${{ inputs.bump }}'
55+
fi
56+
echo "resolved=$RELEASE_VERSION" >> "$GITHUB_OUTPUT"
57+
58+
- name: Resolve version
59+
env:
60+
INPUT_VERSION: ${{ steps.resolve_version.outputs.resolved }}
61+
run: |
62+
node ./scripts/release/version.js "$INPUT_VERSION"
63+
RESOLVED_VERSION=$(jq -r .version package.json)
64+
echo "RESOLVED_VERSION=$RESOLVED_VERSION" >> "$GITHUB_ENV"
65+
66+
- name: Set git identity (Actions bot)
67+
run: |
68+
git config user.name "github-actions[bot]"
69+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
70+
71+
- name: Commit & push
72+
uses: actions-js/push@v1.4
73+
with:
74+
github_token: ${{ secrets.WORKFLOW_PAT }}
75+
branch: ${{ github.ref_name }}
76+
message: 'chore: release v${{ env.RESOLVED_VERSION }}'
77+
78+
- name: Build
79+
run: yarn build
80+
81+
- name: Tag and create GitHub release
82+
env:
83+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
run: |
86+
VERSION=$(jq -r .version package.json)
87+
git tag -a "v$VERSION" -m "Release v$VERSION"
88+
git push origin tag "v$VERSION"
89+
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
90+
91+
- name: Publish to npm
92+
env:
93+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
94+
NPM_CONFIG_ALWAYS_AUTH: 'true'
95+
run: |
96+
# Force both npm and yarn to use npmjs and pick up the token
97+
yarn config set registry https://registry.npmjs.org
98+
npm config set registry https://registry.npmjs.org
99+
printf "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}\nalways-auth=true\n" > ~/.npmrc
100+
101+
# Sanity checks
102+
echo "yarn registry: $(yarn config get registry)"
103+
echo "npm registry: $(npm config get registry)"
104+
105+
TAG=$([ "$GITHUB_REF_NAME" = "master" ] && echo latest || echo "$GITHUB_REF_NAME")
106+
yarn nx release publish --yes --tag "$TAG"

.nucleus.yaml

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

package.json

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lwc-monorepo",
3-
"version": "8.21.1",
3+
"version": "8.21.6",
44
"private": true,
55
"description": "Lightning Web Components",
66
"repository": {
@@ -38,43 +38,43 @@
3838
},
3939
"devDependencies": {
4040
"@commitlint/cli": "^19.8.1",
41-
"@eslint/js": "9.33.0",
41+
"@eslint/js": "9.34.0",
4242
"@lwc/eslint-plugin-lwc-internal": "link:./scripts/eslint-plugin",
4343
"@lwc/test-utils-lwc-internals": "link:./scripts/test-utils",
44-
"@nx/js": "21.3.11",
44+
"@nx/js": "21.4.1",
4545
"@rollup/plugin-commonjs": "^28.0.6",
4646
"@rollup/plugin-inject": "^5.0.5",
4747
"@rollup/plugin-node-resolve": "^16.0.1",
4848
"@rollup/plugin-replace": "^6.0.2",
4949
"@rollup/plugin-typescript": "^12.1.4",
50-
"@swc-node/register": "~1.10.10",
51-
"@swc/core": "~1.13.3",
50+
"@swc-node/register": "~1.11.1",
51+
"@swc/core": "~1.13.5",
5252
"@swc/helpers": "~0.5.17",
5353
"@types/babel__core": "^7.20.5",
54-
"@types/node": "^22.17.1",
54+
"@types/node": "^22.18.0",
5555
"@vitest/coverage-v8": "^3.2.4",
5656
"@vitest/eslint-plugin": "^1.3.4",
5757
"@vitest/ui": "^3.2.4",
5858
"bytes": "^3.1.2",
5959
"es-module-lexer": "^1.7.0",
60-
"eslint": "9.33.0",
60+
"eslint": "9.34.0",
6161
"eslint-config-flat-gitignore": "^2.1.0",
6262
"eslint-plugin-header": "^3.1.1",
6363
"eslint-plugin-import": "^2.32.0",
6464
"glob": "^11.0.3",
6565
"globals": "^16.3.0",
6666
"husky": "^9.1.7",
67-
"isbinaryfile": "^5.0.4",
67+
"isbinaryfile": "^5.0.6",
6868
"jsdom": "^26.1.0",
69-
"lint-staged": "^16.1.5",
70-
"magic-string": "^0.30.17",
71-
"nx": "21.3.11",
69+
"lint-staged": "^16.1.6",
70+
"magic-string": "^0.30.18",
71+
"nx": "21.4.1",
7272
"prettier": "^3.6.2",
73-
"rollup": "^4.46.2",
73+
"rollup": "^4.50.0",
7474
"terser": "^5.43.1",
7575
"tslib": "^2.8.1",
7676
"typescript": "5.8.2",
77-
"typescript-eslint": "8.39.0",
77+
"typescript-eslint": "8.41.0",
7878
"vitest": "^3.2.4"
7979
},
8080
"lint-staged": {
@@ -98,14 +98,12 @@
9898
"resolutions": {
9999
"//": {
100100
"http-cache-semantics": "Pinned to address security vulnerability",
101-
"semver": "Pinned to address security vulnerability",
102101
"@types/estree": [
103102
"Used by us and our dependencies. Because it's a type definition package,",
104103
"we need everyone to use the same types (mixing versions breaks stuff)."
105104
]
106105
},
107-
"http-cache-semantics": "4.1.1",
108-
"semver": "7.6.0",
106+
"http-cache-semantics": "4.2.0",
109107
"@types/estree": "^1.0.8"
110108
},
111109
"dependencies": {}

packages/@lwc/aria-reflection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
55
],
66
"name": "@lwc/aria-reflection",
7-
"version": "8.21.1",
7+
"version": "8.21.6",
88
"description": "ARIA element reflection polyfill for strings",
99
"keywords": [
1010
"aom",

packages/@lwc/babel-plugin-component/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
55
],
66
"name": "@lwc/babel-plugin-component",
7-
"version": "8.21.1",
7+
"version": "8.21.6",
88
"description": "Babel plugin to transform a LWC module",
99
"keywords": [
1010
"lwc"
@@ -47,8 +47,8 @@
4747
},
4848
"dependencies": {
4949
"@babel/helper-module-imports": "7.27.1",
50-
"@lwc/errors": "8.21.1",
51-
"@lwc/shared": "8.21.1",
50+
"@lwc/errors": "8.21.6",
51+
"@lwc/shared": "8.21.6",
5252
"line-column": "~1.0.2"
5353
},
5454
"devDependencies": {

packages/@lwc/compiler/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
55
],
66
"name": "@lwc/compiler",
7-
"version": "8.21.1",
7+
"version": "8.21.6",
88
"description": "LWC compiler",
99
"keywords": [
1010
"lwc"
@@ -46,17 +46,17 @@
4646
}
4747
},
4848
"dependencies": {
49-
"@babel/core": "7.28.0",
49+
"@babel/core": "7.28.3",
5050
"@babel/plugin-transform-async-generator-functions": "7.28.0",
5151
"@babel/plugin-transform-async-to-generator": "7.27.1",
5252
"@babel/plugin-transform-class-properties": "7.27.1",
5353
"@babel/plugin-transform-object-rest-spread": "7.28.0",
5454
"@locker/babel-plugin-transform-unforgeables": "0.22.0",
55-
"@lwc/babel-plugin-component": "8.21.1",
56-
"@lwc/errors": "8.21.1",
57-
"@lwc/shared": "8.21.1",
58-
"@lwc/ssr-compiler": "8.21.1",
59-
"@lwc/style-compiler": "8.21.1",
60-
"@lwc/template-compiler": "8.21.1"
55+
"@lwc/babel-plugin-component": "8.21.6",
56+
"@lwc/errors": "8.21.6",
57+
"@lwc/shared": "8.21.6",
58+
"@lwc/ssr-compiler": "8.21.6",
59+
"@lwc/style-compiler": "8.21.6",
60+
"@lwc/template-compiler": "8.21.6"
6161
}
6262
}

packages/@lwc/engine-core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
55
],
66
"name": "@lwc/engine-core",
7-
"version": "8.21.1",
7+
"version": "8.21.6",
88
"description": "Core LWC engine APIs.",
99
"keywords": [
1010
"lwc"
@@ -46,9 +46,9 @@
4646
}
4747
},
4848
"dependencies": {
49-
"@lwc/features": "8.21.1",
50-
"@lwc/shared": "8.21.1",
51-
"@lwc/signals": "8.21.1"
49+
"@lwc/features": "8.21.6",
50+
"@lwc/shared": "8.21.6",
51+
"@lwc/signals": "8.21.6"
5252
},
5353
"devDependencies": {
5454
"observable-membrane": "2.0.0"

packages/@lwc/engine-dom/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
55
],
66
"name": "@lwc/engine-dom",
7-
"version": "8.21.1",
7+
"version": "8.21.6",
88
"description": "Renders LWC components in a DOM environment.",
99
"keywords": [
1010
"lwc"
@@ -46,10 +46,10 @@
4646
}
4747
},
4848
"devDependencies": {
49-
"@lwc/engine-core": "8.21.1",
50-
"@lwc/shared": "8.21.1",
51-
"@lwc/features": "8.21.1",
52-
"@lwc/signals": "8.21.1"
49+
"@lwc/engine-core": "8.21.6",
50+
"@lwc/shared": "8.21.6",
51+
"@lwc/features": "8.21.6",
52+
"@lwc/signals": "8.21.6"
5353
},
5454
"lwc": {
5555
"modules": [

packages/@lwc/engine-server/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
55
],
66
"name": "@lwc/engine-server",
7-
"version": "8.21.1",
7+
"version": "8.21.6",
88
"description": "Renders LWC components in a server environment.",
99
"keywords": [
1010
"lwc"
@@ -46,11 +46,11 @@
4646
}
4747
},
4848
"devDependencies": {
49-
"@lwc/engine-core": "8.21.1",
50-
"@lwc/rollup-plugin": "8.21.1",
51-
"@lwc/shared": "8.21.1",
52-
"@lwc/features": "8.21.1",
53-
"@lwc/signals": "8.21.1",
49+
"@lwc/engine-core": "8.21.6",
50+
"@lwc/rollup-plugin": "8.21.6",
51+
"@lwc/shared": "8.21.6",
52+
"@lwc/features": "8.21.6",
53+
"@lwc/signals": "8.21.6",
5454
"@rollup/plugin-virtual": "^3.0.2",
5555
"parse5": "^8.0.0"
5656
}

0 commit comments

Comments
 (0)