Skip to content

Commit ecfb9e0

Browse files
authored
fix: filecoin-pin/upload-action always builds filecoin-pin (#204)
* fix: filecoin-pin/upload-action always builds filecoin-pin * chore: upload-action installs filecoin-pin deps before build * docs: upload-action uses new known good provider ids
1 parent 57bff19 commit ecfb9e0

File tree

5 files changed

+2215
-50
lines changed

5 files changed

+2215
-50
lines changed

upload-action/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,16 @@ runs:
161161
path: ${{ steps.action-path.outputs.path }}/node_modules
162162
key: ${{ runner.os }}-filecoin-action-deps-${{ steps.lockfile-hash.outputs.hash }}
163163

164+
- name: Install filecoin-pin dependencies
165+
shell: bash
166+
working-directory: ${{ github.action_path }}
167+
run: npm install --prefix ../
168+
169+
- name: Build filecoin-pin package
170+
shell: bash
171+
working-directory: ${{ github.action_path }}
172+
run: npm run build --prefix ../
173+
164174
- name: Propagate Actions runtime token
165175
uses: actions/github-script@v7
166176
with:

upload-action/examples/single-workflow/build-and-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# This PROVIDER_ID set here will be used by the upload action below to override provider selection.
3737
- name: Select random known good provider
3838
run: |
39-
known_good_provider_ids=(2 8 16)
39+
known_good_provider_ids=(2)
4040
selected_provider_id=${known_good_provider_ids[$RANDOM % ${#known_good_provider_ids[@]}]}
4141
echo "PROVIDER_ID=$selected_provider_id" >> $GITHUB_ENV
4242
echo "Selected known good provider ID: $selected_provider_id"

upload-action/examples/two-workflow-pattern/upload-to-filecoin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
# This PROVIDER_ID set here will be used by the upload action below to override provider selection.
4242
- name: Select random known good provider
4343
run: |
44-
known_good_provider_ids=(2 8 16)
44+
known_good_provider_ids=(2)
4545
selected_provider_id=${known_good_provider_ids[$RANDOM % ${#known_good_provider_ids[@]}]}
4646
echo "PROVIDER_ID=$selected_provider_id" >> $GITHUB_ENV
4747
echo "Selected known good provider ID: $selected_provider_id"

0 commit comments

Comments
 (0)