Skip to content

Commit

Permalink
Update GHA workflow (#145)
Browse files Browse the repository at this point in the history
* Update node version to next LTS release
* run build step of workflow in PRs
  • Loading branch information
abhay authored Apr 16, 2024
1 parent c342c27 commit 64c09e0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/create-proposals.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Create Proposals

on:
pull_request:
branches:
- main
push:
branches:
- main

env:
NODE_VERSION: 16
NODE_VERSION: 18

jobs:
create:
Expand All @@ -32,11 +35,13 @@ jobs:
shell: bash

- run: echo "$DEPLOY_KEYPAIR" > ./deploy-keypair.json && chmod 600 ./deploy-keypair.json
if: github.ref == 'refs/heads/main'
shell: bash
env:
DEPLOY_KEYPAIR: ${{ secrets.DEPLOYER_KEYPAIR }}

- name: Run Bulk Create Helium Proposals
if: github.ref == 'refs/heads/main'
run: |
./node_modules/.bin/ts-node ./bin/helium-vote.ts bulk-create-proposal \
-u "https://solana-rpc.web.helium.io?session-key=Pluto" \
Expand All @@ -46,6 +51,7 @@ jobs:
--multisig ${{ secrets.MULTISIG }}
- name: Run Bulk Create Mobile Proposals
if: github.ref == 'refs/heads/main'
run: |
./node_modules/.bin/ts-node ./bin/helium-vote.ts bulk-create-proposal \
-u "https://solana-rpc.web.helium.io?session-key=Pluto" \
Expand All @@ -55,6 +61,7 @@ jobs:
--multisig ${{ secrets.MULTISIG }}
- name: Run Bulk Create Iot Proposals
if: github.ref == 'refs/heads/main'
run: |
./node_modules/.bin/ts-node ./bin/helium-vote.ts bulk-create-proposal \
-u "https://solana-rpc.web.helium.io?session-key=Pluto" \
Expand Down

0 comments on commit 64c09e0

Please sign in to comment.