Skip to content

Commit d5d24d8

Browse files
committed
ci(workflows): [ci] archive production artifacts
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 11dae18 commit d5d24d8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
#
33
# References:
44
#
5+
# - https://docs.github.com/actions/automating-builds-and-tests/building-and-testing-nodejs
56
# - https://docs.github.com/actions/learn-github-actions/contexts
67
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request
78
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#push
89
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
910
# - https://github.com/actions/checkout
1011
# - https://github.com/actions/setup-node
1112
# - https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#yarn2-configuration
13+
# - https://github.com/actions/upload-artifact
1214
# - https://github.com/hmarr/debug-action
1315

1416
---
@@ -72,3 +74,13 @@ jobs:
7274
run: yarn pack -o %s-%v.tgz
7375
env:
7476
NODE_ENV: production
77+
- id: version
78+
name: Get package version
79+
run: echo "result=$(jq .version package.json -r)" >> $GITHUB_OUTPUT
80+
- id: archive
81+
name: Archive production artifacts
82+
uses: actions/[email protected]
83+
with:
84+
name: |
85+
${{ format('@{0}-{1}-{2}', github.repository_owner, github.event.repository.name, steps.version.outputs.result) }}
86+
path: '*.tgz'

0 commit comments

Comments
 (0)