mirror of
https://github.com/pnpm/action-setup.git
synced 2025-07-08 05:20:12 +08:00
Compare commits
5 Commits
v4
...
inspect-is
Author | SHA1 | Date | |
---|---|---|---|
271a9df5fb | |||
3b5e8836ec | |||
0fa2b7d3a5 | |||
c3e0d9f20f | |||
d2316507fd |
@ -26,3 +26,4 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: node12
|
using: node12
|
||||||
main: dist/index.js
|
main: dist/index.js
|
||||||
|
post: dist/index.js
|
||||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
11
src/index.ts
11
src/index.ts
@ -1,10 +1,19 @@
|
|||||||
import { setFailed } from '@actions/core'
|
import { setFailed, getState } from '@actions/core'
|
||||||
import getInputs from './inputs'
|
import getInputs from './inputs'
|
||||||
import setOutputs from './outputs'
|
import setOutputs from './outputs'
|
||||||
import installPnpm from './install-pnpm'
|
import installPnpm from './install-pnpm'
|
||||||
import pnpmInstall from './pnpm-install'
|
import pnpmInstall from './pnpm-install'
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
const isPost = getState('isPost')
|
||||||
|
console.log({
|
||||||
|
is_post: getState('is_post'),
|
||||||
|
isPost: getState('isPost'),
|
||||||
|
STATE_isPost: process.env['STATE_isPost'],
|
||||||
|
})
|
||||||
|
if (isPost) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const inputs = getInputs()
|
const inputs = getInputs()
|
||||||
await installPnpm(inputs)
|
await installPnpm(inputs)
|
||||||
console.log('Installation Completed!')
|
console.log('Installation Completed!')
|
||||||
|
Reference in New Issue
Block a user