Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
name: TS Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: "22"
node-version: "24"
cache: "npm"
- run: npm install
- name: Run prettier
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 22
- 23
- 24
steps:
- name: Set up node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: "22"
- uses: actions/checkout@v4
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v5
- run: echo "::add-matcher::.github/javascript-syntax.json"
- name: Remove files to be ignored
run: |
Expand Down
34 changes: 16 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,36 @@ on:

jobs:
build:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: "22"
node-version: "24"
registry-url: "https://registry.npmjs.com/"
- run: npm ci
- name: Read package.json
id: package
uses: RadovanPelka/github-action-json@main
with:
path: "package.json"
- name: Remove old builds
run: |
rm -rf *.tgz
- name: Publish to npmjs.com
if: startsWith(github.ref, 'refs/tags/')
if: steps.package.outputs.private == '' || steps.package.outputs.private == 'false' || steps.package.outputs.private == false
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Pack
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: "*.tar.gz"
- name: Create package
if: startsWith(github.ref, 'refs/tags/')
run: |
rm -rf *.tgz
npm pack
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v3
- name: Publish to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: "*.tgz"
- name: On Build Failure
if: steps.check_files.outputs.files_exists == 'false'
run: |
echo "Packaging FAILED" && exit 1
fail_on_unmatched_files: true
41 changes: 11 additions & 30 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,49 +15,30 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 22
- 23
- 24
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: "22"
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install
- run: |
npx tsc --noEmit
eslint:
name: "eslint"
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: "22"
node-version: "24"
cache: "npm"
- run: npm install
- run: npx eslint .
javascript_sync:
name: "Check for outdated JavaScript"
needs: tsc
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- run: npm install
- run: rm -R dist/**/*.js
- run: |
npx tsc
- run: echo "::add-matcher::.github/diff.json"
- name: Show diff
run: |
git checkout -- package-lock.json
git diff --exit-code
Loading