Skip to content

Commit 36e39a2

Browse files
committed
fix: πŸ› naming consistency
βœ… Closes: #5
1 parent 645e166 commit 36e39a2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

β€Ž.github/actions/compile/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as core from '@actions/core';
22
import main from './main';
33

44
try {
5+
// keep format for backwards compatibility nodejs10.x-tf1.7.4.br
56
const lambda = `nodejs${core.getInput('lambda')}.x`;
67
const tensorflow = core.getInput('tensorflow');
78
const binary = core.getInput('binary');

β€Ž.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161
with:
6262
lambda: ${{ matrix.lambda }}
6363
tensorflow: ${{ matrix.tensorflow }}
64-
binary: '${{ matrix.lambda }}-tf${{ matrix.tensorflow }}.br'
64+
# keep format for backwards compatibility nodejs10.x-tf1.7.4.br
65+
binary: 'nodejs${{ matrix.lambda }}.x-tf${{ matrix.tensorflow }}.br'
6566

6667
- name: List files
6768
run: |
@@ -71,8 +72,9 @@ jobs:
7172
uses: actions/upload-artifact@v2
7273
with:
7374
if-no-files-found: error
74-
name: '${{ matrix.lambda }}-tf${{ matrix.tensorflow }}'
75-
path: './${{ matrix.lambda }}-tf${{ matrix.tensorflow }}.br'
75+
# keep format for backwards compatibility nodejs10.x-tf1.7.4.br
76+
name: 'nodejs${{ matrix.lambda }}.x-tf${{ matrix.tensorflow }}'
77+
path: './nodejs${{ matrix.lambda }}.x-tf${{ matrix.tensorflow }}.br'
7678
retention-days: 2
7779

7880
publish:
@@ -97,8 +99,9 @@ jobs:
9799
- name: Add matrix.json
98100
working-directory: ./tfjs-node-lambda-releases
99101
# https://stackoverflow.com/a/35589472
102+
# keep format for backwards compatibility nodejs10.x-tf1.7.4.br
100103
run: |
101-
echo '{"lambda":${{ needs.matrix.outputs.lambda }},"tensorflow":${{ needs.matrix.outputs.tensorflow }}}' >| matrix.json
104+
echo '{"lambda":'$(node --print 'JSON.stringify(${{ needs.matrix.outputs.lambda }}.map(version => `nodejs${version}.x`))')',"tensorflow":${{ needs.matrix.outputs.tensorflow }}}' >| matrix.json
102105
103106
- name: Fix folder structure
104107
working-directory: ./tfjs-node-lambda-releases

0 commit comments

Comments
Β (0)