Skip to content

Commit 0e3728c

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/allow-conditional-esm-consumption
2 parents 5ee05cc + b12d552 commit 0e3728c

File tree

9 files changed

+421
-37
lines changed

9 files changed

+421
-37
lines changed

.github/dependabot.yml

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: monthly
7+
8+
- package-ecosystem: npm
9+
directory: /AppWithModules/app
10+
schedule:
11+
interval: monthly
12+
time: "23:00"
13+
open-pull-requests-limit: 10
14+
ignore:
15+
- dependency-name: "*"
16+
update-types: ["version-update:semver-major"]
17+
18+
- package-ecosystem: npm
19+
directory: /TestRunner/app
20+
schedule:
21+
interval: monthly
22+
time: "23:00"
23+
open-pull-requests-limit: 10
24+
ignore:
25+
- dependency-name: "*"
26+
update-types: ["version-update:semver-major"]
27+
28+
- package-ecosystem: npm
29+
directory: /TestRunner/app/tests
30+
schedule:
31+
interval: monthly
32+
time: "23:00"
33+
open-pull-requests-limit: 10
34+
ignore:
35+
- dependency-name: "*"
36+
update-types: ["version-update:semver-major"]
37+
38+
- package-ecosystem: npm
39+
directory: /TestRunner/app/tests/shared/Require/PackageJsonApp/io
40+
schedule:
41+
interval: monthly
42+
time: "23:00"
43+
open-pull-requests-limit: 10
44+
ignore:
45+
- dependency-name: "*"
46+
update-types: ["version-update:semver-major"]
47+
48+
- package-ecosystem: npm
49+
directory: /TestRunner/app/tests/shared/Require/PackageJsonAppNoMain/io
50+
schedule:
51+
interval: monthly
52+
time: "23:00"
53+
open-pull-requests-limit: 10
54+
ignore:
55+
- dependency-name: "*"
56+
update-types: ["version-update:semver-major"]
57+
58+
- package-ecosystem: npm
59+
directory: /TestRunner/app/tests/shared/Require/PackageJsonAppWithoutExtension/io
60+
schedule:
61+
interval: monthly
62+
time: "23:00"
63+
open-pull-requests-limit: 10
64+
ignore:
65+
- dependency-name: "*"
66+
update-types: ["version-update:semver-major"]
67+
68+
- package-ecosystem: npm
69+
directory: /TestRunner/app/tests/shared/Require/PackageJsonMainPointsToDir
70+
schedule:
71+
interval: monthly
72+
time: "23:00"
73+
open-pull-requests-limit: 10
74+
ignore:
75+
- dependency-name: "*"
76+
update-types: ["version-update:semver-major"]
77+
78+
- package-ecosystem: npm
79+
directory: /TestRunner/app/tests/shared/Require/PackageJsonSyntaxError/io
80+
schedule:
81+
interval: monthly
82+
time: "23:00"
83+
open-pull-requests-limit: 10
84+
ignore:
85+
- dependency-name: "*"
86+
update-types: ["version-update:semver-major"]
87+
88+
- package-ecosystem: npm
89+
directory: /TestRunner/app/tests/shared/Require/ResolveCanonicalPath
90+
schedule:
91+
interval: monthly
92+
time: "23:00"
93+
open-pull-requests-limit: 10
94+
ignore:
95+
- dependency-name: "*"
96+
update-types: ["version-update:semver-major"]
97+
98+
- package-ecosystem: npm
99+
directory: /TestRunner/app/tests/shared
100+
schedule:
101+
interval: monthly
102+
time: "23:00"
103+
open-pull-requests-limit: 10
104+
ignore:
105+
- dependency-name: "*"
106+
update-types: ["version-update:semver-major"]
107+
108+
- package-ecosystem: npm
109+
directory: /TestRunner/app/tns_modules/dummy-package
110+
schedule:
111+
interval: monthly
112+
time: "23:00"
113+
open-pull-requests-limit: 10
114+
ignore:
115+
- dependency-name: "*"
116+
update-types: ["version-update:semver-major"]
117+
118+
- package-ecosystem: npm
119+
directory: /TestRunner/app/tns_modules/tns-core-modules/shared/Require/PackageJsonTns/io
120+
schedule:
121+
interval: monthly
122+
time: "23:00"
123+
open-pull-requests-limit: 10
124+
ignore:
125+
- dependency-name: "*"
126+
update-types: ["version-update:semver-major"]
127+
128+
- package-ecosystem: npm
129+
directory: /TestRunner/app/tns_modules/tns-core-modules/shared/Require/RequirePriority/dependency5
130+
schedule:
131+
interval: monthly
132+
time: "23:00"
133+
open-pull-requests-limit: 10
134+
ignore:
135+
- dependency-name: "*"
136+
update-types: ["version-update:semver-major"]
137+
138+
- package-ecosystem: npm
139+
directory: /
140+
schedule:
141+
interval: monthly
142+
time: "23:00"
143+
open-pull-requests-limit: 10
144+
ignore:
145+
- dependency-name: "*"
146+
update-types: ["version-update:semver-major"]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request,
4+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
5+
# Once installed, if the workflow run is marked as required,
6+
# PRs introducing known-vulnerable packages will be blocked from merging.
7+
#
8+
# Source repository: https://github.com/actions/dependency-review-action
9+
name: 'Dependency Review'
10+
on: [pull_request]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
dependency-review:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: 'Checkout Repository'
20+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
21+
- name: 'Dependency Review'
22+
uses: actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7.3

.github/workflows/npm_release.yml

Lines changed: 38 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,27 @@ jobs:
1717
npm_version: ${{ steps.npm_version_output.outputs.NPM_VERSION }}
1818
npm_tag: ${{ steps.npm_version_output.outputs.NPM_TAG }}
1919
steps:
20-
- uses: maxim-lobanov/setup-xcode@v1
20+
- name: Harden the runner (Audit all outbound calls)
21+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
22+
with:
23+
egress-policy: audit
24+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
2125
with:
2226
xcode-version: ${{env.XCODE_VERSION}}
23-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2428
with:
2529
fetch-depth: 0
2630
- name: LLVM cache
27-
uses: actions/cache@v3
31+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
2832
with:
2933
path: ./llvm
3034
key: ${{ hashFiles('download_llvm.sh') }}
31-
- uses: actions/setup-node@v3
35+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
3236
with:
3337
node-version: 20
3438
registry-url: "https://registry.npmjs.org"
3539
- name: Install Python
36-
uses: actions/setup-python@v4
40+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
3741
with:
3842
python-version: "3"
3943
- name: Install Dependencies
@@ -68,12 +72,12 @@ jobs:
6872
- name: Build
6973
run: npm run build-ios
7074
- name: Upload npm package artifact
71-
uses: actions/upload-artifact@v4
75+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7276
with:
7377
name: npm-package
7478
path: dist/nativescript-ios-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz
7579
- name: Upload dSYMs artifact
76-
uses: actions/upload-artifact@v4
80+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7781
with:
7882
name: NativeScript-dSYMs
7983
path: dist/dSYMs
@@ -82,20 +86,24 @@ jobs:
8286
runs-on: macos-14
8387
needs: build
8488
steps:
85-
- uses: maxim-lobanov/setup-xcode@v1
89+
- name: Harden the runner (Audit all outbound calls)
90+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
91+
with:
92+
egress-policy: audit
93+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
8694
with:
8795
xcode-version: ${{env.XCODE_VERSION}}
88-
- uses: actions/checkout@v3
96+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
8997
- name: LLVM cache
90-
uses: actions/cache@v3
98+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
9199
with:
92100
path: ./llvm
93101
key: ${{ hashFiles('download_llvm.sh') }}
94-
- uses: actions/setup-node@v3
102+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
95103
with:
96104
node-version: 20
97105
- name: Install Python
98-
uses: actions/setup-python@v4
106+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
99107
with:
100108
python-version: "3"
101109
- name: Install Dependencies
@@ -120,7 +128,7 @@ jobs:
120128
mkdir -p dist-test
121129
echo TEST_FOLDER=$(pwd)/dist-test >> $GITHUB_ENV
122130
- name: Xcode Tests
123-
uses: nick-fields/retry@v2
131+
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
124132
# try to run the tests with xcpretty. If it fails then try again without xcpretty twice for better log output
125133
# the xcode tests are a bit flaky and they should never fail on this step, as this step only collects the JS test results as junit xml
126134
with:
@@ -136,7 +144,7 @@ jobs:
136144
find $TEST_FOLDER/test-out -name "*junit*.xml" -maxdepth 1 -print0 | xargs -n 1 -0 npx verify-junit-xml
137145
- name: Archive Test Result Data
138146
if: always()
139-
uses: actions/upload-artifact@v4
147+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
140148
with:
141149
name: test-results
142150
path: ${{env.TEST_FOLDER}}/test_results.xcresult
@@ -152,11 +160,15 @@ jobs:
152160
NPM_VERSION: ${{needs.build.outputs.npm_version}}
153161
NPM_TAG: ${{needs.build.outputs.npm_tag}}
154162
steps:
155-
- uses: actions/setup-node@v3
163+
- name: Harden the runner (Audit all outbound calls)
164+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
165+
with:
166+
egress-policy: audit
167+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
156168
with:
157169
node-version: 20
158170
registry-url: "https://registry.npmjs.org"
159-
- uses: actions/[email protected]
171+
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
160172
with:
161173
name: npm-package
162174
path: dist
@@ -178,19 +190,23 @@ jobs:
178190
env:
179191
NPM_VERSION: ${{needs.build.outputs.npm_version}}
180192
steps:
181-
- uses: actions/checkout@v3
193+
- name: Harden the runner (Audit all outbound calls)
194+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
195+
with:
196+
egress-policy: audit
197+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
182198
with:
183199
fetch-depth: 0
184-
- uses: actions/setup-node@v3
200+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
185201
with:
186202
node-version: 20
187203
- name: Setup
188204
run: npm install
189-
- uses: actions/[email protected]
205+
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
190206
with:
191207
name: npm-package
192208
path: dist
193-
- uses: actions/[email protected]
209+
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
194210
with:
195211
name: NativeScript-dSYMs
196212
path: dist/dSYMs
@@ -199,8 +215,9 @@ jobs:
199215
run: find . -maxdepth 1 -name '*.dSYM' -print | xargs -I@ zip -r @.zip @
200216
- name: Partial Changelog
201217
run: npx conventional-changelog -p angular -r2 > body.md
202-
- uses: ncipollo/release-action@v1
218+
- uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
203219
with:
204220
artifacts: "dist/nativescript-ios-*.tgz,dist/dSYMs/*.zip"
205221
bodyFile: "body.md"
206222
prerelease: ${{needs.build.outputs.npm_tag != 'latest'}}
223+
allowUpdates: true

0 commit comments

Comments
 (0)