Skip to content

Commit e708ed9

Browse files
committed
ci: add workflow
1 parent 0d47731 commit e708ed9

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/scripts/lib.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// @ts-check
2+
3+
/** @param {import('github-script').AsyncFunctionArguments} args */
4+
export async function getLatestVersion({ github }) {
5+
const result = await github.rest.packages.getAllPackageVersionsForPackageOwnedByAuthenticatedUser();
6+
console.log(result);
7+
}

.github/workflows/ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
defaults:
8+
run:
9+
shell: bash
10+
permissions:
11+
contents: read
12+
packages: write
13+
jobs:
14+
configure:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
19+
- name: Run Script
20+
uses: actions/github-script@v7
21+
with:
22+
script: |
23+
const { getLatestVersion } = await import('./.github/scripts/issues.cjs');
24+
await getLatestVersion();

0 commit comments

Comments
 (0)