Skip to content

Commit

Permalink
Try installing in github action step by looking at latest commit hash…
Browse files Browse the repository at this point in the history
…????
  • Loading branch information
ChiriVulpes committed Sep 28, 2024
1 parent 905e4bd commit 2af5274
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
- name: Install dependencies
run: npm ci --force

- name: Disable npm cache
run: npm config set cache /tmp/no-cache
- name: Force install latest chirilang
run: |
LATEST_COMMIT=$(curl -s https://api.github.com/repos/fluff4me/chiri/commits/package | jq -r '.sha')
npm install github:fluff4me/chiri#$LATEST_COMMIT
- name: Build
env:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ jobs:
- name: Install dependencies
run: npm ci --force

- name: Disable npm cache
run: npm config set cache /tmp/no-cache

- name: Force install latest chirilang
run: |
LATEST_COMMIT=$(curl -s https://api.github.com/repos/fluff4me/chiri/commits/package | jq -r '.sha')
npm install github:fluff4me/chiri#$LATEST_COMMIT
- name: Calculate Run Number
env:
NUM: ${{ github.run_number }}
Expand Down
3 changes: 0 additions & 3 deletions tasks/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ export default Task("install", async () => {
if (Env.ENVIRONMENT === "dev") {
Log.info(`Installing ${ansi.lightCyan("api.fluff4.me@latest")}...`)
await Task.cli({ cwd: "src" }, "PATH:npm", "install", "api.fluff4.me@latest")
} else {
Log.info(`Installing ${ansi.lightCyan("chiri@latest")}...`)
await Task.cli({ cwd: "src" }, "PATH:npm", "install", "github:fluff4me/chiri#package")
}
})

0 comments on commit 2af5274

Please sign in to comment.