mirror of https://github.com/aminya/setup-cpp
ci: add node 12
This commit is contained in:
parent
ca0fc58327
commit
a1aead3082
|
@ -27,9 +27,12 @@ jobs:
|
|||
cache_reset_counter:
|
||||
- 0
|
||||
node:
|
||||
- 12
|
||||
- 16
|
||||
- 18
|
||||
include:
|
||||
- node: 12
|
||||
pnpm: 6
|
||||
- node: 16
|
||||
pnpm: 7
|
||||
- node: 18
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
FROM ubuntu:22.04 AS base
|
||||
|
||||
ADD https://deb.nodesource.com/setup_16.x /
|
||||
RUN chmod +x /node_setup_16.x && /node_setup16.x
|
||||
RUN apt-get update -qq && apt-get install -y --no-install-recommends curl gnupg
|
||||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
||||
RUN apt-get update -qq && apt-get install -y --no-install-recommends nodejs
|
||||
|
||||
# add setup-cpp.js
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
"require": "./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",
|
||||
"bin": {
|
||||
"setup-cpp": "./dist/node16/setup-cpp.js"
|
||||
|
@ -118,7 +120,7 @@
|
|||
"which": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.x"
|
||||
"node": ">=12.x"
|
||||
},
|
||||
"keywords": [
|
||||
"github-actions",
|
||||
|
@ -143,8 +145,6 @@
|
|||
"electron": false,
|
||||
"patha": "patha/dist/index.node.mjs"
|
||||
},
|
||||
"node12": "./dist/node12/setup-cpp.js",
|
||||
"main.actions": "./dist/node18/setup-cpp.js",
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"semver": "7.3.8",
|
||||
|
@ -166,7 +166,7 @@
|
|||
}
|
||||
},
|
||||
"targets": {
|
||||
"node12": {
|
||||
"main.legacy": {
|
||||
"context": "node",
|
||||
"engines": {
|
||||
"node": ">=12.x"
|
||||
|
|
Loading…
Reference in New Issue