Skip to content

Commit

Permalink
ci: fixed code
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim committed Aug 9, 2024
1 parent 31e1f0f commit 60d0119
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/auto-build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,16 @@ permissions:
statuses: read

jobs:
autoBuild:
update-package:
runs-on: ubuntu-latest
name: Auto build deps
strategy:
matrix:
node-version: [18.x]
if: github.repository == 'BarudakRosul/split-lines'

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
node-version: "22.x"
cache: npm

# Fix the unsafe repo error which was introduced by the CVE-2022-24765 git patches.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: "18.x"
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
# Defaults to the user or organization that owns the workflow file
scope: "@barudakrosul"
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,15 @@ on:
permissions: read-all

jobs:
build:
name: Perform check
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
if: github.repository == 'BarudakRosul/split-lines'

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
node-version: "22.x"
cache: npm

- name: Install package
Expand Down

0 comments on commit 60d0119

Please sign in to comment.