Repository navigation
Merge pull request #37 from AugustoL/dev #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Hash production build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: './package-lock.json' | |
| - name: Update npm to v11 | |
| run: npm install -g npm@11 | |
| - name: Install IPFS CLI | |
| run: | | |
| wget https://dist.ipfs.io/kubo/v0.37.0/kubo_v0.37.0_linux-amd64.tar.gz | |
| tar -xzf kubo_v0.37.0_linux-amd64.tar.gz | |
| sudo cp kubo/ipfs /usr/local/bin/ | |
| sudo chmod +x /usr/local/bin/ipfs | |
| ipfs version | |
| ipfs init | |
| - name: Build Production | |
| run: ./scripts/build-production.sh |