Skip to content

deps: bump eslint from 9.39.3 to 10.0.2 #1659

deps: bump eslint from 9.39.3 to 10.0.2

deps: bump eslint from 9.39.3 to 10.0.2 #1659

Workflow file for this run

name: Release
on:
push:
branches: ["**"]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6
- name: Setup NodeJS
uses: actions/setup-node@dda4788290998366da86b6a4f497909644397bb2 # v4
with:
node-version: 24
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Audit dependencies
run: npm audit --audit-level=high
- name: Build project
run: npm run build
- name: Test project
run: npm run test
- name: Compress dist/ directory to targets.tar
run: tar cf targets.tar dist
- name: Upload targets.tar
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main')
with:
name: target-${{ runner.os }}
path: targets.tar
retention-days: 1
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
if: github.ref == 'refs/heads/main'
environment:
name: production
steps:
- name: Checkout current branch
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6
with:
persist-credentials: false
- name: Setup NodeJS
uses: actions/setup-node@dda4788290998366da86b6a4f497909644397bb2 # v4
with:
node-version: 24
cache: "npm"
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Audit dependencies
run: npm audit --audit-level=high
- name: Download target directories
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
with:
name: target-${{ runner.os }}
- name: Inflate target directories
run: |
tar xf targets.tar
rm targets.tar
- name: Create GitHub App Token
id: app-token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.0
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Publish project
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6
id: semantic
with:
semantic_version: 25.0.2
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
branches: |
[
"main"
]
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}