https://github.com/browser-actions/actions-swing
A powerful development kit for GitHub Actions 🏌️
https://github.com/browser-actions/actions-swing
Last synced: about 2 months ago
JSON representation
A powerful development kit for GitHub Actions 🏌️
- Host: GitHub
- URL: https://github.com/browser-actions/actions-swing
- Owner: browser-actions
- License: mit
- Created: 2024-04-20T01:11:32.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-25T08:20:25.000Z (over 1 year ago)
- Last Synced: 2025-12-30T07:31:20.230Z (6 months ago)
- Language: TypeScript
- Size: 54.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```console
$ 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.
```typescript
import { runtime } from 'actions-swing';
const osReleaseId = await runtime.getOsReleaseId();
```
### `pkg.install()`
Installs package(s) using the system package manager on Linux.
```typescript
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.
```typescript
import { pkg } from 'actions-swing';
await pkg.uninstall(['vim', 'git']);
await pkg.uninstall(['vim', 'git'], { sudo: true });
```
## License
MIT