Skip to content

Upgrade setup-node action to version 6 #4

Upgrade setup-node action to version 6

Upgrade setup-node action to version 6 #4

Workflow file for this run

name: "Main"
on:
repository_dispatch:
push:
paths-ignore:
- "README.md"
permissions:
contents: write
packages: write
pull-requests: write
jobs:
build-hash:
runs-on: ubuntu-latest
name: Build and post IPFS hash
if: github.event_name == 'push' && github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: npx @dappnode/dappnodesdk github-action build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}
release:
name: Release
runs-on: ipfs-dev-gateway
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'repository_dispatch'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Publish
run: npx @dappnode/dappnodesdk publish patch --github_release --timeout 1h --content_provider=http://10.200.200.7:5001 --eth_provider=https://web3.dappnode.net
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEVELOPER_ADDRESS: ${{ secrets.DEVELOPER_ADDRESS }}