Skip to content

Commit

Permalink
gh workflow iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
samifouad committed Aug 7, 2024
1 parent f18831a commit e257a5a
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,35 +193,35 @@ jobs:
- name: download all artifacts
uses: actions/download-artifact@v4

- name: Install jq
shell: bash
run: |
sudo apt-get install jq -y
# - name: Install jq
# shell: bash
# run: |
# sudo apt-get install jq -y

- name: Prepare linux-x64's package.json and copy binary artifact
shell: bash
run: |
jq ". + {version: \"${{ github.ref_name }}\"}" gild-cli/npm/gild-linux-x64/package.json > gild-cli/npm/gild-linux-x64/package.tmp.json && mv gild-cli/npm/gild-linux-x64/package.tmp.json gild-cli/npm/gild-linux-x64/package.json
cp ./gild-cli_${{ github.ref_name }}_linux-x64/gild gild-cli/npm/gild-linux-x64/gild
# - name: Prepare linux-x64's package.json and copy binary artifact
# shell: bash
# run: |
# jq ". + {version: \"${{ github.ref_name }}\"}" gild-cli/npm/gild-linux-x64/package.json > gild-cli/npm/gild-linux-x64/package.tmp.json && mv gild-cli/npm/gild-linux-x64/package.tmp.json gild-cli/npm/gild-linux-x64/package.json
# cp ./gild-cli_${{ github.ref_name }}_linux-x64/gild gild-cli/npm/gild-linux-x64/gild

- name: Display structure of downloaded files
run: ls -R

- name: setup npm
run: |
cd gild-cli/npm/gild
npm link
# - name: setup npm
# run: |
# cd gild-cli/npm/gild
# npm link

- name: install gild via npm
run: npm install -g @samifouad/gild
# - name: install gild via npm
# run: npm install -g @samifouad/gild

- name: Display structure of files + npm
run: |
ls -R
npm list @samifouad/gild
# - name: Display structure of files + npm
# run: |
# ls -R
# npm list @samifouad/gild

- name: sanity check
run: gild check
# - name: sanity check
# run: gild check

darwin-x64-binary-test:
needs: [darwin-x64]
Expand Down

0 comments on commit e257a5a

Please sign in to comment.