Skip to content

Commit c4385c8

Browse files
authored
Merge pull request #259 from catdad/actions-update
updating github actions to the latest versions
2 parents 320381b + 4bf60a5 commit c4385c8

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
test:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3.8.1
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-node@v6
1717
with:
18-
node-version: 14
18+
node-version: 24
1919
registry-url: https://registry.npmjs.org/
2020
- run: npm install
2121
- run: npm run lint
@@ -25,7 +25,7 @@ jobs:
2525
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
2626
env:
2727
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
28-
- uses: actions/upload-artifact@v3
28+
- uses: actions/upload-artifact@v4
2929
if: ${{ failure() }}
3030
with:
3131
name: test-screenshots

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"babel-eslint": "^8.2.1",
3232
"browserify": "^15.2.0",
3333
"cross-env": "^5.1.3",
34-
"eslint": "^6.8.0",
35-
"eslint-plugin-ava": "9.0.0",
34+
"eslint": "^8.57.1",
35+
"eslint-plugin-ava": "^13.2.0",
3636
"jimp": "^0.2.28",
3737
"puppeteer": "^19.11.1",
3838
"rootrequire": "^1.0.0",

src/confetti.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
worker = new Worker(URL.createObjectURL(new Blob([code])));
211211
} catch (e) {
212212
// eslint-disable-next-line no-console
213-
typeof console !== undefined && typeof console.warn === 'function' ? console.warn('🎊 Could not load worker', e) : null;
213+
typeof console !== 'undefined' && typeof console.warn === 'function' ? console.warn('🎊 Could not load worker', e) : null;
214214

215215
return null;
216216
}
@@ -684,7 +684,7 @@
684684

685685
if (isLibCanvas && canvas) {
686686
if (document.body.contains(canvas)) {
687-
document.body.removeChild(canvas);
687+
document.body.removeChild(canvas);
688688
}
689689
canvas = null;
690690
initialized = false;

test/.eslintrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ env:
77
parser: babel-eslint
88
parserOptions:
99
sourceType: module
10+
ecmaVersion: 6
11+
ecmaFeatures:
12+
modules: true
1013
plugins:
1114
- ava

0 commit comments

Comments
 (0)