@@ -9,28 +9,28 @@ concurrency:
99 group : release
1010 cancel-in-progress : false
1111
12- permissions :
13- contents : write
14- id-token : write
15-
1612env :
1713 GH_REPO : AltimateAI/altimate-code
1814
1915jobs :
2016 build :
2117 name : Build (${{ matrix.os }})
2218 runs-on : ubuntu-latest
19+ permissions :
20+ contents : read
2321 strategy :
2422 fail-fast : false
2523 matrix :
2624 os : [linux, darwin, win32]
2725 steps :
28- - uses : actions/checkout@v4
26+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2927
30- - uses : oven-sh/setup-bun@v2
28+ - uses : oven-sh/setup-bun@ecf28ddc73e819eb6fa29df6b34ef8921c743461 # v2
29+ with :
30+ bun-version : " 1.3.9"
3131
3232 - name : Cache Bun dependencies
33- uses : actions/cache@v4
33+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
3434 with :
3535 path : ~/.bun/install/cache
3636 key : bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
5050 MODELS_DEV_API_JSON : test/tool/fixtures/models-api.json
5151
5252 - name : Upload build artifacts
53- uses : actions/upload-artifact@v4
53+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5454 with :
5555 name : dist-${{ matrix.os }}
5656 path : packages/altimate-code/dist/
@@ -59,13 +59,17 @@ jobs:
5959 name : Publish to npm
6060 needs : build
6161 runs-on : ubuntu-latest
62+ permissions :
63+ contents : read
6264 steps :
63- - uses : actions/checkout@v4
65+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
6466
65- - uses : oven-sh/setup-bun@v2
67+ - uses : oven-sh/setup-bun@ecf28ddc73e819eb6fa29df6b34ef8921c743461 # v2
68+ with :
69+ bun-version : " 1.3.9"
6670
6771 - name : Cache Bun dependencies
68- uses : actions/cache@v4
72+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
6973 with :
7074 path : ~/.bun/install/cache
7175 key : bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
7680 run : bun install
7781
7882 - name : Download all build artifacts
79- uses : actions/download-artifact@v4
83+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
8084 with :
8185 pattern : dist-*
8286 path : packages/altimate-code/dist/
@@ -124,23 +128,23 @@ jobs:
124128 contents : read
125129 id-token : write
126130 steps :
127- - uses : actions/checkout@v4
131+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
128132
129- - uses : actions/setup-python@v5
133+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
130134 with :
131135 python-version : " 3.12"
132136 cache : ' pip'
133137 cache-dependency-path : packages/altimate-engine/pyproject.toml
134138
135139 - name : Install build tools
136- run : pip install build
140+ run : pip install build==1.2.2
137141
138142 - name : Build package
139143 run : python -m build
140144 working-directory : packages/altimate-engine
141145
142146 - name : Publish to PyPI
143- uses : pypa/gh-action-pypi-publish@release/v1
147+ uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
144148 with :
145149 packages-dir : packages/altimate-engine/dist/
146150 skip-existing : true
@@ -152,7 +156,7 @@ jobs:
152156 permissions :
153157 contents : write
154158 steps :
155- - uses : actions/checkout@v4
159+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
156160 with :
157161 fetch-depth : 0
158162
@@ -206,14 +210,14 @@ jobs:
206210 CURRENT_TAG : ${{ github.ref_name }}
207211
208212 - name : Download all build artifacts
209- uses : actions/download-artifact@v4
213+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
210214 with :
211215 pattern : dist-*
212216 path : packages/altimate-code/dist/
213217 merge-multiple : true
214218
215219 - name : Create GitHub Release
216- uses : softprops/action-gh-release@v2
220+ uses : softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2
217221 with :
218222 body_path : notes.md
219223 draft : false
0 commit comments