Compare commits

...
12 Commits
Author SHA1 Message Date
Zoltan Kochan c3b53f6a16 chore(release): 2.2.4 2022-10-15 21:12:50 +03:00
Zoltan Kochan 21e88da200 fix(deps): update 2022-10-15 21:12:13 +03:00
Zoltan Kochan fc3334fa11 build 2022-10-15 21:09:00 +03:00
Sébastien Vanvelthem d01953a678 Update action/core to 1.10.0 to fix deprecation warnings (#59)
* chore: update action/core to 1.10.0

* chore(lock): freshen
2022-10-15 20:57:21 +03:00
Khải 3360b50db7 Merge pull request #58 from belgattitude/doc-adapt-to-new-github-env
Doc update to account for deprecated `set-output`.
2022-10-13 22:23:23 +07:00
Sébastien Vanvelthem 6f9e9a867a docs: update to new github env 2022-10-13 16:58:06 +02:00
Khải 537643d491 Merge pull request #56 from i7eo/master
chore: bump node version
2022-10-11 11:58:06 +07:00
George Tan f4129fb46e fix
Update node version, see https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2022-10-11 10:56:24 +08:00
Lew Blood 6e1964dde3 Fix spacing issue in README.md example (#48) 2022-06-17 23:17:05 +03:00
Zoltan Kochan 10693b3829 Update action.yml 2022-05-28 17:23:43 +03:00
Zoltan Kochan 99ecd24520 v2.2.2 2022-05-28 17:22:28 +03:00
Zoltan Kochan 958500fcab fix: do not download pnpm from get.pnpm.io (#46)
* fix: do not download pnpm from get.pnpm.io

* fix: remove redundant files
2022-05-28 16:54:43 +03:00
9 changed files with 268175 additions and 423 deletions
+1
View File
@@ -2,6 +2,7 @@ node_modules
*.log
/dist/*
!/dist/index.js
!/dist/pnpm.js
tmp
temp
*.tmp
+5 -5
View File
@@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v2.1.0
- uses: pnpm/action-setup@v2.2.4
with:
version: 6.0.2
```
@@ -81,7 +81,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.1.0
- uses: pnpm/action-setup@v2.2.4
with:
version: 6.0.2
run_install: |
@@ -105,7 +105,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
@@ -120,12 +120,12 @@ jobs:
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
+5 -5
View File
@@ -1,13 +1,13 @@
name: Setup PNPM
description: Install PNPM package manager
name: Setup pnpm
description: Install pnpm package manager
branding:
icon: package
color: orange
inputs:
version:
description: Version of PNPM to install
description: Version of pnpm to install
dest:
description: Where to store PNPM files
description: Where to store pnpm files
required: false
default: ~/setup-pnpm
run_install:
@@ -15,6 +15,6 @@ inputs:
required: false
default: 'null'
runs:
using: node12
using: node16
main: dist/index.js
post: dist/index.js
+3 -31
View File
File diff suppressed because one or more lines are too long
+134031
View File
File diff suppressed because one or more lines are too long
+7 -9
View File
@@ -3,26 +3,24 @@
"scripts": {
"build:schemas": "ts-schema-autogen generate",
"build:ncc": "ncc build --minify --no-source-map-register --no-cache dist/tsc/index.js --out dist/",
"build": "pnpm run build:schemas && tsc && pnpm run build:ncc",
"build": "pnpm run build:schemas && tsc && pnpm run build:ncc && cp src/install-pnpm/pnpm.js dist/pnpm.js",
"start": "pnpm run build && sh ./run.sh"
},
"dependencies": {
"@actions/core": "^1.6.0",
"@pnpm/fetch": "^4.2.5",
"@pnpm/logger": "^4.0.0",
"@actions/core": "^1.10.0",
"@types/expand-tilde": "^2.0.0",
"@types/fs-extra": "^9.0.13",
"@types/js-yaml": "^4.0.5",
"@types/node": "^14.18.10",
"@types/node-fetch": "^2.6.1",
"@types/node": "^14.18.32",
"@types/node-fetch": "^2.6.2",
"ajv": "^6.12.6",
"expand-tilde": "^2.0.2",
"fs-extra": "^10.0.0",
"fs-extra": "^10.1.0",
"js-yaml": "^4.1.0"
},
"devDependencies": {
"@ts-schema-autogen/cli": "^0.1.2",
"@vercel/ncc": "^0.33.3",
"typescript": "^4.5.5"
"@vercel/ncc": "^0.33.4",
"typescript": "^4.8.4"
}
}
+91 -367
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+1 -6
View File
@@ -1,5 +1,4 @@
import { addPath, exportVariable } from '@actions/core'
import fetch from '@pnpm/fetch'
import { spawn } from 'child_process'
import { remove, ensureFile, writeFile, readFile } from 'fs-extra'
import path from 'path'
@@ -17,15 +16,11 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
// prepare target pnpm
const target = await readTarget(version)
const cp = spawn(execPath, ['-', 'install', target, '--no-lockfile'], {
const cp = spawn(execPath, [path.join(__dirname, 'pnpm.js'), 'install', target, '--no-lockfile'], {
cwd: dest,
stdio: ['pipe', 'inherit', 'inherit'],
})
const response = await fetch('https://get.pnpm.io/v6.16.js')
if (!response.body) throw new Error('Did not receive response body')
response.body.pipe(cp.stdin)
const exitCode = await new Promise<number>((resolve, reject) => {
cp.on('error', reject)
cp.on('close', resolve)