Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 994 Bytes

README.md

File metadata and controls

52 lines (33 loc) · 994 Bytes

actions-swing

A powerful development kit for GitHub Actions 🏌️

Warning

This package is still in development and may not be stable. Use at your own risk.

Installation

$ npm install actions-swing # npm
$ yarn add actions-swing    # yarn
$ pnpm add actions-swing    # pnpm

Usage

runtime.osReleaseId()

Returns the ID field of the /etc/os-release file.

import { runtime } from 'actions-swing';

const osReleaseId = await runtime.getOsReleaseId();

pkg.install()

Installs package(s) using the system package manager on Linux.

import { pkg } from 'actions-swing';

await pkg.install(['vim', 'git']);
await pkg.install(['vim', 'git'], { sudo: true });

pkg.uninstall()

Uninstalls package(s) using the system package manager on Linux.

import { pkg } from 'actions-swing';

await pkg.uninstall(['vim', 'git']);
await pkg.uninstall(['vim', 'git'], { sudo: true });

License

MIT