Skip to content

Commit c933918

Browse files
committed
node to version 20. created latest sdk file
1 parent 7e13700 commit c933918

File tree

4 files changed

+60
-26
lines changed

4 files changed

+60
-26
lines changed

.github/workflows/node.js.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node-version: [18.x]
17+
node-version: [20.x]
1818
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1919

2020
steps:

.github/workflows/publish-package-to-npmjs.yml

Lines changed: 50 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
needs: [incrementVersionNumber]
3838
strategy:
3939
matrix:
40-
node-version: [18.x]
40+
node-version: [20.x]
4141
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
4242
target: [development, production]
4343
steps:
@@ -56,16 +56,26 @@ jobs:
5656
run: npm install
5757
- name: Build script
5858
run: npm run build -- --mode=${{ matrix.target }}
59+
# - uses: actions/upload-artifact@v4
60+
# if: inputs.publish_to_cdn
61+
# with:
62+
# name: uid2SDK-${{ matrix.target }}-${{ steps.version.outputs.package_version }}
63+
# path: ./dist/uid2-sdk-${{ steps.version.outputs.package_version }}.js
5964
- uses: actions/upload-artifact@v4
6065
if: inputs.publish_to_cdn
6166
with:
62-
name: uid2SDK-${{ matrix.target }}-${{ steps.version.outputs.package_version }}
63-
path: ./dist/uid2-sdk-${{ steps.version.outputs.package_version }}.js
67+
name: uid2SDK-${{ matrix.target }}-latest
68+
path: ./dist/uid2-sdk-latest.js
69+
# - uses: actions/upload-artifact@v4
70+
# if: inputs.publish_to_cdn
71+
# with:
72+
# name: euidSDK-${{ matrix.target }}-${{ steps.version.outputs.package_version }}
73+
# path: ./dist/euid-sdk-${{ steps.version.outputs.package_version }}.js
6474
- uses: actions/upload-artifact@v4
6575
if: inputs.publish_to_cdn
6676
with:
67-
name: euidSDK-${{ matrix.target }}-${{ steps.version.outputs.package_version }}
68-
path: ./dist/euid-sdk-${{ steps.version.outputs.package_version }}.js
77+
name: euidSDK-${{ matrix.target }}-latest
78+
path: ./dist/euid-sdk-latest.js
6979
outputs:
7080
sdkVersion: ${{ steps.version.outputs.package_version }}
7181
publish-package:
@@ -78,26 +88,26 @@ jobs:
7888
ref: ${{ needs.incrementVersionNumber.outputs.git_tag_or_hash }}
7989
- uses: actions/setup-node@v4
8090
with:
81-
node-version: '18.x'
91+
node-version: '20.x'
8292
registry-url: 'https://registry.npmjs.org'
8393
scope: uid2
8494
- run: npm ci
8595
- name: Build package
8696
run: npm run build-package
87-
- name: Publish Latest package
88-
if: ${{!github.event.inputs.with_tag}}
89-
run: |
90-
npm publish ./dist/uid2-npm --access public
91-
npm publish ./dist/euid-npm --access public
92-
env:
93-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
94-
- name: Publish Latest package with tag
95-
if: ${{github.event.inputs.with_tag}}
96-
run: |
97-
npm publish ./dist/uid2-npm --tag ${{github.event.inputs.with_tag}} --access public
98-
npm publish ./dist/euid-npm --tag ${{github.event.inputs.with_tag}} --access public
99-
env:
100-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
97+
# - name: Publish Latest package
98+
# if: ${{!github.event.inputs.with_tag}}
99+
# run: |
100+
# npm publish ./dist/uid2-npm --access public
101+
# npm publish ./dist/euid-npm --access public
102+
# env:
103+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
104+
# - name: Publish Latest package with tag
105+
# if: ${{github.event.inputs.with_tag}}
106+
# run: |
107+
# npm publish ./dist/uid2-npm --tag ${{github.event.inputs.with_tag}} --access public
108+
# npm publish ./dist/euid-npm --tag ${{github.event.inputs.with_tag}} --access public
109+
# env:
110+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
101111
cdn-deployment-uid2:
102112
if: inputs.publish_to_cdn
103113
needs: [build, incrementVersionNumber]
@@ -112,11 +122,19 @@ jobs:
112122
- uses: actions/checkout@v4
113123
with:
114124
ref: ${{ needs.incrementVersionNumber.outputs.git_tag_or_hash }}
125+
# - uses: ./.github/actions/cdn_deployment_aws
126+
# with:
127+
# environment: ${{ matrix.environment }}
128+
# artifact: uid2SDK-${{ (matrix.environment == 'integ' && 'development') || matrix.environment }}-${{ needs.build.outputs.sdkVersion}}
129+
# invalidate_paths: '/uid2-sdk-${{ needs.build.outputs.sdkVersion}}.js'
130+
# aws_account_id: ${{ vars.AWS_ACCOUNT_ID }}
131+
# aws_bucket_name: ${{ vars.S3_BUCKET }}
132+
# aws_distribution_id: ${{ secrets.AWS_DISTRIBUTION_ID }}
115133
- uses: ./.github/actions/cdn_deployment_aws
116134
with:
117135
environment: ${{ matrix.environment }}
118-
artifact: uid2SDK-${{ (matrix.environment == 'integ' && 'development') || matrix.environment }}-${{ needs.build.outputs.sdkVersion}}
119-
invalidate_paths: '/uid2-sdk-${{ needs.build.outputs.sdkVersion}}.js'
136+
artifact: uid2SDK-${{ (matrix.environment == 'integ' && 'development') || matrix.environment }}-latest
137+
invalidate_paths: '/uid2-sdk-latest.js'
120138
aws_account_id: ${{ vars.AWS_ACCOUNT_ID }}
121139
aws_bucket_name: ${{ vars.S3_BUCKET }}
122140
aws_distribution_id: ${{ secrets.AWS_DISTRIBUTION_ID }}
@@ -134,11 +152,19 @@ jobs:
134152
- uses: actions/checkout@v4
135153
with:
136154
ref: ${{ needs.incrementVersionNumber.outputs.git_tag_or_hash }}
155+
# - uses: ./.github/actions/cdn_deployment_aws
156+
# with:
157+
# environment: ${{ matrix.environment }}
158+
# artifact: euidSDK-${{ (matrix.environment == 'integ' && 'development') || matrix.environment }}-${{ needs.build.outputs.sdkVersion}}
159+
# invalidate_paths: '/euid-sdk-${{ needs.build.outputs.sdkVersion}}.js'
160+
# aws_account_id: ${{ vars.EUID_AWS_ACCOUNT_ID }}
161+
# aws_bucket_name: ${{ vars.EUID_S3_BUCKET }}
162+
# aws_distribution_id: ${{ secrets.EUID_AWS_DISTRIBUTION_ID }}
137163
- uses: ./.github/actions/cdn_deployment_aws
138164
with:
139165
environment: ${{ matrix.environment }}
140-
artifact: euidSDK-${{ (matrix.environment == 'integ' && 'development') || matrix.environment }}-${{ needs.build.outputs.sdkVersion}}
141-
invalidate_paths: '/euid-sdk-${{ needs.build.outputs.sdkVersion}}.js'
166+
artifact: euidSDK-${{ (matrix.environment == 'integ' && 'development') || matrix.environment }}-latest
167+
invalidate_paths: '/euid-sdk-latest.js'
142168
aws_account_id: ${{ vars.EUID_AWS_ACCOUNT_ID }}
143169
aws_bucket_name: ${{ vars.EUID_S3_BUCKET }}
144170
aws_distribution_id: ${{ secrets.EUID_AWS_DISTRIBUTION_ID }}

.github/workflows/secureSignal-cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
node-version: [18.x]
32+
node-version: [20.x]
3333
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
3434
target: [development, production]
3535

webpack.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,18 @@ module.exports = (env, argv) => {
3131
import: uid2Entrypoint,
3232
filename: `uid2-sdk-${process.env.npm_package_version}.js`,
3333
},
34+
'uid2-sdk-latest': {
35+
import: uid2Entrypoint,
36+
filename: `uid2-sdk-latest.js`,
37+
},
3438
'euid-sdk': {
3539
import: euidEntrypoint,
3640
filename: `euid-sdk-${process.env.npm_package_version}.js`,
3741
},
42+
'euid-sdk-latest': {
43+
import: euidEntrypoint,
44+
filename: `euid-sdk-latest.js`,
45+
},
3846
...getExampleOutputs(env),
3947
}
4048
: espOutput,

0 commit comments

Comments
 (0)