Compare commits

...

6 commits

Author SHA1 Message Date
Robin fe49e20e21
Merge 3198cf26b4 into c924f59f41 2024-06-27 15:50:52 +01:00
Michael Telatynski c924f59f41
Merge pull request #27632 from element-hq/t3chguy/fix-release-note-ingest
Remove redundant reusable workflow input
2024-06-26 17:05:36 +00:00
Michael Telatynski c6134b1849
Update tsconfig.json 2024-06-26 16:49:29 +01:00
Michael Telatynski 0845c515c4
Use workflow_dispatch over repository_dispatch as it lets us specify branch
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-06-25 14:31:30 +01:00
Michael Telatynski 76416ec7b9
Remove redundant reusable workflow input
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-06-25 14:31:11 +01:00
Robin 3198cf26b4 Use latest LTS Node in CI
The README says we require the latest LTS version of Node, but actions/setup-node with ubuntu-latest appears to default to a version earlier than that. I'd like to make use of a feature (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets) available only since Node 20, which happens to be the latest LTS. So, let's get CI on the right version.
2024-06-12 12:28:53 -04:00
8 changed files with 17 additions and 6 deletions

View file

@ -36,6 +36,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/* # Latest LTS
cache: "yarn"
# Workaround for yarn install timeouts, especially on Windows

View file

@ -25,6 +25,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/* # Latest LTS
cache: "yarn"
- name: Install Dependencies

View file

@ -44,6 +44,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/* # Latest LTS
cache: "yarn"
cache-dependency-path: element-web/yarn.lock

View file

@ -20,7 +20,6 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
with:
final: ${{ inputs.mode == 'final' }}
include-changes: matrix-react-sdk
gpg-fingerprint: ${{ vars.GPG_FINGERPRINT }}
asset-path: dist/*.tar.gz
expected-asset-count: 3
@ -31,11 +30,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Notify element-desktop repo that element-web release has completed to re-trigger release-drafter
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3
uses: benc-uk/workflow-dispatch@25b02cc069be46d637e8fe2f1e8484008e9e9609 # v1
with:
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
repository: element-hq/element-desktop
event-type: upstream-release-notify
workflow: release-drafter.yml
repo: element-hq/element-desktop
ref: staging
# Required when using the `repo` option. Either a PAT or a token generated from the GitHub app or CLI
token: "${{ secrets.ELEMENT_BOT_TOKEN }}"
check:
name: Post release checks

View file

@ -20,6 +20,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/* # Latest LTS
cache: "yarn"
- name: Install Dependencies
@ -42,6 +43,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/* # Latest LTS
cache: "yarn"
# Does not need branch matching as only analyses this layer
@ -59,6 +61,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/* # Latest LTS
cache: "yarn"
# Needs branch matching as it inherits .stylelintrc.js from matrix-react-sdk
@ -76,6 +79,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/* # Latest LTS
cache: "yarn"
# Does not need branch matching as only analyses this layer
@ -93,6 +97,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/* # Latest LTS
cache: "yarn"
- name: Install Deps

View file

@ -22,6 +22,7 @@ jobs:
- name: Yarn cache
uses: actions/setup-node@v4
with:
node-version: lts/* # Latest LTS
cache: "yarn"
- name: Install Dependencies

View file

@ -12,6 +12,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/* # Latest LTS
cache: "yarn"
- name: Install Deps

View file

@ -12,7 +12,7 @@
"outDir": "./lib",
"declaration": true,
"jsx": "react",
"lib": ["es2021", "dom", "dom.iterable"],
"lib": ["es2022", "dom", "dom.iterable"],
"strict": true
},
"include": [