Skip to content

Commit 446175f

Browse files
committed
ci: replace deprecated APIs
- deprected --frozen-lockfile replaced by --immutable - deprecated GH Action setOutput replaced by appeding key/vaue pairs to process.env.GITHUB_OUTPUT
1 parent 288fd1a commit 446175f

File tree

9 files changed

+17
-16
lines changed

9 files changed

+17
-16
lines changed

.github/workflows/ci-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
cache: 'yarn'
2222

2323
- name: Install
24-
run: yarn --frozen-lockfile
24+
run: yarn --immutable
2525

2626
- name: Build
2727
run: yarn ci:testbuild

.github/workflows/deploy-preview.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ jobs:
8080
8181
if (pr.state !== 'open') {
8282
console.log(`PR #${pr.number} was closed during build, skipping deployment`);
83-
core.setOutput('should_deploy', 'false');
83+
const fs = require('fs');
84+
fs.appendFileSync(process.env.GITHUB_OUTPUT, `should_deploy=false\n`);
8485
return;
8586
}
8687
8788
console.log(`PR #${pr.number} is still open, proceeding with deployment`);
88-
core.setOutput('should_deploy', 'true');
89+
const fs = require('fs');
90+
fs.appendFileSync(process.env.GITHUB_OUTPUT, `should_deploy=true\n`);
8991
9092
- name: Config Netlify CORS
9193
if: steps.final-pr-check.outputs.should_deploy == 'true'

.github/workflows/deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
yarn ci:deploy:nightly
4646
4747
- name: Deploy
48-
uses: JamesIves/github-pages-deploy-action@v4.3.3
48+
uses: JamesIves/github-pages-deploy-action@v4.7.6
4949
with:
5050
branch: gh-pages # The branch the action should deploy to.
5151
folder: packages/website/build # The folder the action should deploy.
@@ -79,7 +79,7 @@ jobs:
7979
yarn ci:deploy
8080
8181
- name: Deploy
82-
uses: JamesIves/github-pages-deploy-action@v4.3.3
82+
uses: JamesIves/github-pages-deploy-action@v4.7.6
8383
with:
8484
branch: gh-pages # The branch the action should deploy to.
8585
folder: packages/website/build # The folder the action should deploy.

.github/workflows/issue-close.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
stale:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/stale@v5
11+
- uses: actions/stale@v9
1212
with:
1313
# The number of days old an issue can be before marking it stale.
1414
days-before-stale: 21

.github/workflows/issue-reopen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
// Allowed bots
2929
const isSystemUser = ['ui5-webcomponents-bot', 'github-actions[bot]'].includes(commenter);
3030
31-
core.setOutput('shouldReopen', !isSystemUser && commentAt > closedAt);
31+
const fs = require('fs');
32+
fs.appendFileSync(process.env.GITHUB_OUTPUT, `shouldReopen=${!isSystemUser && commentAt > closedAt}\n`);
3233
3334
- name: Reopen Issue
3435
if: steps.check.outputs.shouldReopen == 'true'

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
cache: 'yarn'
1818

1919
- name: Install Dependencies
20-
run: yarn --frozen-lockfile
20+
run: yarn --immutable
2121

2222
- name: Lint
2323
run: yarn ci:lint

.github/workflows/release-downport.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
cache: 'yarn'
2727

2828
- name: Install
29-
run: yarn --frozen-lockfile
29+
run: yarn --immutable
3030

3131
- name: Version Bump
3232
env:

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
cache: 'yarn'
4949

5050
- name: Install Dependencies
51-
run: yarn --frozen-lockfile
51+
run: yarn --immutable
5252

5353
- name: Build
5454
run: yarn ci:releasebuild
@@ -132,7 +132,7 @@ jobs:
132132
cache: 'yarn'
133133

134134
- name: Install Dependencies
135-
run: yarn --frozen-lockfile
135+
run: yarn --immutable
136136

137137
- name: Build
138138
run: yarn ci:releasebuild
@@ -200,7 +200,7 @@ jobs:
200200
cache: 'yarn'
201201

202202
- name: Install Dependencies
203-
run: yarn --frozen-lockfile
203+
run: yarn --immutable
204204

205205
- name: Build
206206
run: yarn ci:releasebuild
@@ -244,7 +244,7 @@ jobs:
244244
cache: 'yarn'
245245

246246
- name: Install Dependencies
247-
run: yarn --frozen-lockfile
247+
run: yarn --immutable
248248

249249
- name: Build
250250
run: yarn ci:releasebuild

packages/base/src/UI5Element.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ abstract class UI5Element extends HTMLElement {
277277
}
278278

279279
/**
280-
* Returns a unique ID for this UI5 Element
281-
*
282-
* @deprecated - This property is not guaranteed in future releases
280+
* Returns a unique ID for this UI5 Element.
283281
* @protected
284282
*/
285283
get _id() {

0 commit comments

Comments
 (0)