Skip to content

Commit

Permalink
fix: improved downloader (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
keroxp authored Jun 17, 2024
1 parent 65cc8c9 commit 3a7e627
Show file tree
Hide file tree
Showing 19 changed files with 12,522 additions and 11,758 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: yarn install
- run: npm i
- name: Check lib
run: |
make
git diff --exit-code
- run: yarn test
- run: npm test
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
lib/index.js: index.ts src/setup.ts package.json yarn.lock
yarn ncc build index.ts -o lib
lib/index.js: index.ts src/setup.ts package.json package-lock.json
npx ncc build index.ts -o lib
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Setup Canarycage'
description: 'Download and add cage to the PATH'
author: 'LoiLo'
name: "Setup Canarycage"
description: "Download and add cage to the PATH"
author: "LoiLo"
inputs:
github-token:
description: "Use secrets.GITHUB_TOKEN."
Expand All @@ -9,5 +9,5 @@ inputs:
description: "Canarycage version. If no version specified, the latest version will be used automatically."
required: false
runs:
using: 'node20'
main: 'lib/index.js'
using: "node20"
main: "lib/index.js"
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main() {
);
}
if (!(await io.which("cage", false))) {
await downloadCage({ version });
await downloadCage({ version, token });
}
} catch (e) {
if (e instanceof Error) {
Expand Down
Loading

0 comments on commit 3a7e627

Please sign in to comment.