Skip to content

Commit

Permalink
chore: update ci (#11623)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed May 15, 2024
1 parent 01ca3eb commit da3d3bc
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
with:
fetch-depth: 0
filter: blob:none
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "pnpm"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:
steps:
- name: Get cache date
id: get-date
run: echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
run: echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_STATE
shell: bash
# note: required by sentry
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: blob:none
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: 'pnpm'
Expand All @@ -46,7 +46,7 @@ jobs:
with:
registry: true
- name: Restore Webpack cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: packages/mask/node_modules/.cache/
key: extension-${{ hashFiles('pnpm-lock.yaml') }}-${{ steps.get-date.outputs.date }}
Expand Down Expand Up @@ -76,31 +76,31 @@ jobs:
version_prefix: mask-
ignore_missing: true
- name: Upload `MaskNetwork.chromium-mv2.zip`
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: MaskNetwork.chromium-mv2.zip
path: masknetwork.chromium-mv2.zip
if-no-files-found: error
- name: Upload `MaskNetwork.chromium-beta.zip`
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: MaskNetwork.chromium-beta.zip
path: masknetwork.chromium-beta.zip
if-no-files-found: error
- name: Upload `MaskNetwork.chromium-mv3.zip`
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: MaskNetwork.chromium-mv3.zip
path: masknetwork.chromium-mv3.zip
if-no-files-found: error
- name: Upload `MaskNetwork.firefox-mv2.zip`
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: MaskNetwork.firefox-mv2.zip
path: masknetwork.firefox-mv2.zip
if-no-files-found: error
- name: Upload `MaskNetwork.firefox-mv3.zip`
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: MaskNetwork.firefox-mv3.zip
path: masknetwork.firefox-mv3.zip
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "pnpm"
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
- run: npx prettier@3.1.0 --write .
- uses: EndBug/add-and-commit@v9
with:
Expand All @@ -71,7 +71,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
- run: npx markdownlint-cli --fix .
- uses: EndBug/add-and-commit@v9
with:
Expand All @@ -80,14 +80,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
- run: npx anti-trojan-source --files='packages/**/src/**/*.{ts,tsx,js}'
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "21"
cache: "pnpm"
Expand All @@ -103,8 +103,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "21"
cache: "pnpm"
Expand All @@ -126,8 +126,8 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: pnpm/action-setup@v2.2.1
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "21"
cache: "pnpm"
Expand All @@ -137,10 +137,10 @@ jobs:
registry: true
- name: Get cache date
id: get-date
run: echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
run: echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_STATE
shell: bash
- name: Restore ESLint cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .eslintcache
key: linter-v2-${{ steps.get-date.outputs.date }}
Expand All @@ -158,7 +158,7 @@ jobs:
with:
message: 'fix: eslint'
- name: Upload eslint report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: eslint
path: reports/junit
2 changes: 1 addition & 1 deletion .github/workflows/milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- synchronize
- milestoned
- demilestoned
branchs:
branches:
- 'develop'
- 'release/*'
- 'hotfix/*'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spell-checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
- name: Check Spell
Expand Down

0 comments on commit da3d3bc

Please sign in to comment.