File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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();
You can’t perform that action at this time.
0 commit comments