-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.16 KB
/
build-release-packages.yml
File metadata and controls
59 lines (48 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: build-release-packages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
HUSKY: '0'
CI: 'true'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Verify project
run: npm run verify
- name: Build npm package
run: npm run pack:local
- name: Prepare package artifact directory
shell: bash
run: |
mkdir -p dist/package
mv ./*.tgz dist/package/
- name: Generate package checksums
shell: bash
run: |
cd dist/package
sha256sum ./*.tgz > SHA256SUMS.txt
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: atlas-lab-package
path: |
dist/package/*.tgz
dist/package/SHA256SUMS.txt
if-no-files-found: error