Skip to content

Commit

Permalink
ci: fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
homerchen19 committed Jan 5, 2025
1 parent 07b0c87 commit 4b7eb3c
Show file tree
Hide file tree
Showing 4 changed files with 359 additions and 169 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i -g yarn
- run: yarn install
node-version: 20
- name: Enable Corepack
run: corepack enable
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- run: yarn lint
- run: yarn zip
# Add publishing steps
12 changes: 8 additions & 4 deletions .github/workflows/safari.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i -g yarn
- run: yarn install
node-version: 20
- name: Enable Corepack
run: corepack enable
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- run: yarn build
- run: rm .gitignore
- run: ls
Expand All @@ -39,7 +43,7 @@ jobs:
# get the latest release number
# LAST_VERSION=$(curl --silent "https://api.github.com/repos/homerchen19/github-file-icons/releases/latest" | jq -r .tag_name)
LAST_VERSION=${{ github.event.release.tag_name }}
# remove the "v" from the version num. xcode uploads do not work with non numberic versions.
LAST_VERSION=${LAST_VERSION/v/}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"web-ext": "^7.11.0",
"webpack": "^5.72.1",
"webpack": "^5.97.1",
"webpack-cli": "^6.0.1",
"webpack-ext-reloader": "^1.1.13",
"write-file-webpack-plugin": "^4.5.1"
Expand Down
Loading

0 comments on commit 4b7eb3c

Please sign in to comment.