Skip to content

Commit

Permalink
(ci): update ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
LoboMetalurgico committed Feb 8, 2025
1 parent 128275a commit 09530f8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node v12
uses: actions/setup-node@v1
uses: actions/checkout@v4
- name: Install Node v22
uses: actions/setup-node@v4
with:
node-version: 12.x
- name: Install PNPM
run: curl -L https://unpkg.com/@pnpm/self-installer | node
node-version: 22.x
- name: Upgrade NPM
run: npm install -g npm@latest
- name: Install dependencies
run: pnpm install
run: npm ci
- name: Run ESLint
run: npm run eslint:fix
run: npm run lint
- name: Commit changes
uses: EndBug/add-and-commit@v4
with:
add: src
message: "chore(lint): Auto-fix linting errors"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/gitpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Publish Tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- id: set_var
name: Get Version
run: |
Expand All @@ -32,7 +32,7 @@ jobs:
name: Publish Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- id: set_var
name: Get Version
run: |
Expand All @@ -52,4 +52,4 @@ jobs:
prerelease_regex: ^v[0-9]\.[0-9]\.[0-9]\-
created_tag: v${{ fromJson(steps.set_var.outputs.packageJson).version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"postbuild": "node src/scripts/updateResources.js",
"prestart": "npm run build",
"start": "node build/aruna/index.js",
"eslint": "eslint ./src",
"eslint:fix": "eslint ./src --fix"
"lint": "eslint ./src --fix"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 09530f8

Please sign in to comment.