ci: add node 12

This commit is contained in:
abeimler 2023-04-06 17:34:55 +02:00
parent ca0fc58327
commit a1aead3082
3 changed files with 9 additions and 6 deletions

View File

@ -27,9 +27,12 @@ jobs:
cache_reset_counter: cache_reset_counter:
- 0 - 0
node: node:
- 12
- 16 - 16
- 18 - 18
include: include:
- node: 12
pnpm: 6
- node: 16 - node: 16
pnpm: 7 pnpm: 7
- node: 18 - node: 18

View File

@ -1,7 +1,7 @@
FROM ubuntu:22.04 AS base FROM ubuntu:22.04 AS base
ADD https://deb.nodesource.com/setup_16.x / RUN apt-get update -qq && apt-get install -y --no-install-recommends curl gnupg
RUN chmod +x /node_setup_16.x && /node_setup16.x RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get update -qq && apt-get install -y --no-install-recommends nodejs RUN apt-get update -qq && apt-get install -y --no-install-recommends nodejs
# add setup-cpp.js # add setup-cpp.js

View File

@ -10,6 +10,8 @@
"require": "./dist/node16/setup-cpp.js" "require": "./dist/node16/setup-cpp.js"
}, },
"main": "./dist/node16/setup-cpp.js", "main": "./dist/node16/setup-cpp.js",
"main.legacy": "./dist/node12/setup-cpp.js",
"main.actions": "./dist/node18/setup-cpp.js",
"source": "./src/main.ts", "source": "./src/main.ts",
"bin": { "bin": {
"setup-cpp": "./dist/node16/setup-cpp.js" "setup-cpp": "./dist/node16/setup-cpp.js"
@ -118,7 +120,7 @@
"which": "^3.0.0" "which": "^3.0.0"
}, },
"engines": { "engines": {
"node": ">=16.x" "node": ">=12.x"
}, },
"keywords": [ "keywords": [
"github-actions", "github-actions",
@ -143,8 +145,6 @@
"electron": false, "electron": false,
"patha": "patha/dist/index.node.mjs" "patha": "patha/dist/index.node.mjs"
}, },
"node12": "./dist/node12/setup-cpp.js",
"main.actions": "./dist/node18/setup-cpp.js",
"pnpm": { "pnpm": {
"overrides": { "overrides": {
"semver": "7.3.8", "semver": "7.3.8",
@ -166,7 +166,7 @@
} }
}, },
"targets": { "targets": {
"node12": { "main.legacy": {
"context": "node", "context": "node",
"engines": { "engines": {
"node": ">=12.x" "node": ">=12.x"