11name : Release
22
3- permissions :
4- contents : write
5- packages : write
6-
73on :
8- release :
9- types :
10- - published
11- workflow_dispatch :
12- inputs :
13- checkout-branch :
14- description : ' The branch or tag to checkout (same as workflow if not specified)'
15- required : false
4+ push :
5+ branches :
6+ - main
167
17- jobs :
8+ jobs :
189 build :
1910 strategy :
2011 fail-fast : false
21- runs-on : windows-2019
12+ runs-on : ubuntu-latest
2213 steps :
2314 - name : Checkout
2415 uses : actions/checkout@v4
2516 with :
26- ref : ${{ github.event.inputs.checkout-branch }}
27- submodules : true
17+ persist-credentials : false
2818
2919 - name : Setup Python
3020 uses : actions/setup-python@v4
3121 with :
32- python-version : ' 3.11'
22+ python-version : ' 3.13'
23+
24+ - name : Install GCC
25+ id : install-gcc
26+ uses : awalsh128/cache-apt-pkgs-action@latest
27+ with :
28+ packages : build-essential@latest
29+ version : 1.0
3330
3431 - name : Setup Bun
3532 uses : oven-sh/setup-bun@v2
@@ -40,40 +37,40 @@ jobs:
4037 run : bun add -g node-gyp
4138
4239 - name : Install dependencies
43- run : bun install --ignore-scripts
40+ run : bun install --ignore-scripts --frozen-lockfile
4441
4542 - name : Build
4643 run : bun run build
4744
48- - name : Upload artifact
49- uses : actions/upload-artifact@v4
50- with :
51- name : memoryjs
52- path : lib/
45+ # - name: Upload artifact
46+ # uses: actions/upload-artifact@v4
47+ # with:
48+ # name: memoryjs
49+ # path: lib/
5350
54- release :
55- needs : [build]
56- runs-on : ubuntu-latest
57- steps :
58- - name : Checkout
59- uses : actions/checkout@v4
60- with :
61- ref : ${{ github.event.inputs.checkout-branch }}
62- submodules : true
51+ # release:
52+ # needs: [build]
53+ # runs-on: ubuntu-latest
54+ # steps:
55+ # - name: Checkout
56+ # uses: actions/checkout@v4
57+ # with:
58+ # ref: ${{ github.event.inputs.checkout-branch }}
59+ # submodules: true
6360
64- - name : Download artifacts
65- uses : actions/download-artifact@v4.1.7
66- with :
67- name : memoryjs
68- path : lib/
61+ # - name: Download artifacts
62+ # uses: actions/download-artifact@v4.1.7
63+ # with:
64+ # name: memoryjs
65+ # path: lib/
6966
70- - name : Setup Node
71- uses : actions/setup-node@v4
72- with :
73- node-version : ' 20'
74- registry-url : ' https://registry.npmjs.org'
75- env :
76- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
67+ # - name: Setup Node
68+ # uses: actions/setup-node@v4
69+ # with:
70+ # node-version: '20'
71+ # registry-url: 'https://registry.npmjs.org'
72+ # env:
73+ # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
7774
78- - name : Publish release
79- run : npm publish --access public
75+ # - name: Publish release
76+ # run: npm publish --access public
0 commit comments