chore: prepare action for v0.0.1 release

- Update action.yml to point to dist/index.js
- Add built distribution files
- Update package.json and build configuration
This commit is contained in:
Colin McDonnell
2025-08-27 17:47:25 -07:00
parent c5b1e63811
commit f42dc28da8
6 changed files with 18006 additions and 24 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ inputs:
runs:
using: 'node20'
main: 'index.js'
main: 'dist/index.js'
branding:
icon: 'message-circle'
+17731
View File
File diff suppressed because one or more lines are too long
-14
View File
@@ -1,14 +0,0 @@
import * as core from "@actions/core";
//#region index.ts
try {
const message = core.getInput("message") || "Hello from Pullfrog Action!";
console.log(`🐸 ${message}`);
core.info(`Action executed successfully: ${message}`);
core.setOutput("message", message);
} catch (error) {
const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
core.setFailed(`Action failed: ${errorMessage}`);
}
//#endregion
+3 -5
View File
@@ -1,16 +1,14 @@
{
"name": "action",
"version": "1.0.0",
"description": "<h1 align=\"center\"><img width=\"317\" height=\"156\" alt=\"Frame 10 (8)\" src=\"https://github.com/user-attachments/assets/77f3e5e7-cf28-4d75-b41a-1359015fd07c\" /></h1>",
"version": "0.0.1",
"main": "index.js",
"directories": {
"example": "examples"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rolldown -c && mv dist/index.js . && rmdir dist",
"dev": "rolldown -c --watch",
"package": "npm run build && npm prune --production"
"build": "rolldown -c rolldown.config.js",
"dev": "rolldown -c --watch"
},
"dependencies": {
"@actions/core": "^1.10.1"
+267
View File
@@ -0,0 +1,267 @@
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
dependencies:
'@actions/core':
specifier: ^1.10.1
version: 1.11.1
devDependencies:
'@types/node':
specifier: ^20.10.0
version: 20.19.11
rolldown:
specifier: ^0.12.0
version: 0.12.2
typescript:
specifier: ^5.3.0
version: 5.9.2
packages:
'@actions/core@1.11.1':
resolution: {integrity: sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==}
'@actions/exec@1.1.1':
resolution: {integrity: sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==}
'@actions/http-client@2.2.3':
resolution: {integrity: sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==}
'@actions/io@1.1.3':
resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==}
'@emnapi/core@1.4.5':
resolution: {integrity: sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q==}
'@emnapi/runtime@1.4.5':
resolution: {integrity: sha512-++LApOtY0pEEz1zrd9vy1/zXVaVJJ/EbAF3u0fXIzPJEDtnITsBGbbK0EkM72amhl/R5b+5xx0Y/QhcVOpuulg==}
'@emnapi/wasi-threads@1.0.4':
resolution: {integrity: sha512-PJR+bOmMOPH8AtcTGAyYNiuJ3/Fcoj2XN/gBEWzDIKh254XO+mM9XoXHk5GNEhodxeMznbg7BlRojVbKN+gC6g==}
'@fastify/busboy@2.1.1':
resolution: {integrity: sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==}
engines: {node: '>=14'}
'@napi-rs/wasm-runtime@0.2.12':
resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==}
'@rolldown/binding-darwin-arm64@0.12.2':
resolution: {integrity: sha512-Y3Ajye63Z5KymGUwTLaK7Q6YMvycXqNiXtosecgVzjAwMITCmXdzgnWgzzx5UlWHMrDYL4m5zIeXGB5slLwoMA==}
cpu: [arm64]
os: [darwin]
'@rolldown/binding-darwin-x64@0.12.2':
resolution: {integrity: sha512-ZcVuVFEFBXhp00TUNn+EDYs7SGGLQCznvCeuW1XkM8EC2/LfewU/o4WuJK7CBC4iCSktuFGpw7+zLe8D6iinzg==}
cpu: [x64]
os: [darwin]
'@rolldown/binding-freebsd-x64@0.12.2':
resolution: {integrity: sha512-4fjuQHpm3q/Ly4fcqb8Qn49OQc2EQR2scUbQaOzXr7mIn9Zy8NfdRrsVG4/wpYvihIlTEtVx+ku0IZwcUzzZGg==}
cpu: [x64]
os: [freebsd]
'@rolldown/binding-linux-arm-gnueabihf@0.12.2':
resolution: {integrity: sha512-MGEDaYLzTQ1kpvt13PzOwnd6O668S1mPM/vgi4O9vCfqJNTXZX8SeAg8Z2dQZbMSUyFDBVKGkz23GRTHqkGIsQ==}
cpu: [arm]
os: [linux]
'@rolldown/binding-linux-arm64-gnu@0.12.2':
resolution: {integrity: sha512-8uiaMe39twyIAw0do1Gc3O2SpQmyL1A/BucFncEB8eU5jtb3BWIM/X+F+eKDU6c+XZ+S1T025dhR1cGg8y20Xw==}
cpu: [arm64]
os: [linux]
'@rolldown/binding-linux-arm64-musl@0.12.2':
resolution: {integrity: sha512-GOFSKaMJueaSSODcqI+0Hu79buHYtGV7h2tydIDkSDD20mQuvwOF7jIVd27yNdlXWS9wLObwEu3BNgHmIj1M6A==}
cpu: [arm64]
os: [linux]
'@rolldown/binding-linux-x64-gnu@0.12.2':
resolution: {integrity: sha512-+hlRURUSiVP0+PFtjoTxUsiy/2NQpbf3DyUyMyl8Nv5+1BxjB6452VY1iFI+RzG4iLNJslcVcI6d6lJQ5zZYfw==}
cpu: [x64]
os: [linux]
'@rolldown/binding-linux-x64-musl@0.12.2':
resolution: {integrity: sha512-9WKIaQSZZ0i9F5msW4I5kEj6ov+TZLteuTqCzI7nYWDBDm7m/hYkOkdIBf41GC8iKFsgVIQO0kRVAT966U8RxQ==}
cpu: [x64]
os: [linux]
'@rolldown/binding-wasm32-wasi@0.12.2':
resolution: {integrity: sha512-KY7bNrR3Jk6O0ne8LAaAnq9yI6xuKwhr/L2d1lBwrraCCyLHk0UEv4g6PfJkyUx6GfN0gVYuSxFgo9OggycldA==}
engines: {node: '>=14.21.3'}
cpu: [wasm32]
'@rolldown/binding-win32-arm64-msvc@0.12.2':
resolution: {integrity: sha512-XYBXifPk5iNcPUTyV/yB4tlj5nI+fYoe/8CLHjyUG8GS0l8rCD+jKaAv3Jvz2T2erlkjEPqJXmzhUfBscOUo6g==}
cpu: [arm64]
os: [win32]
'@rolldown/binding-win32-ia32-msvc@0.12.2':
resolution: {integrity: sha512-SV9LqvEc0d4gCLbkezH+UJ2uj2pTw3mwSKhFJEm6ir1lb05W6y9++m67NRs17fhudkFAz8iKlyPxKtZBKzAKOw==}
cpu: [ia32]
os: [win32]
'@rolldown/binding-win32-x64-msvc@0.12.2':
resolution: {integrity: sha512-XnRqHx182tyk1M12OMXqLajIj9DZrOUEKSPYrQUSaMCmHHAhULYP6ki240CV16PBWZW4Q1pwQ7YVKYFevRtvKg==}
cpu: [x64]
os: [win32]
'@tybys/wasm-util@0.10.0':
resolution: {integrity: sha512-VyyPYFlOMNylG45GoAe0xDoLwWuowvf92F9kySqzYh8vmYm7D2u4iUJKa1tOUpS70Ku13ASrOkS4ScXFsTaCNQ==}
'@types/node@20.19.11':
resolution: {integrity: sha512-uug3FEEGv0r+jrecvUUpbY8lLisvIjg6AAic6a2bSP5OEOLeJsDSnvhCDov7ipFFMXS3orMpzlmi0ZcuGkBbow==}
rolldown@0.12.2:
resolution: {integrity: sha512-YJYKiYt2O9XytiQ3Na4Kk29avfIXhvK7udB3wAaVaF4kiSsFKE1167tElO/0eD6tjfJXCvwNxwsyYkBJRtsLmQ==}
hasBin: true
tslib@2.8.1:
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
tunnel@0.0.6:
resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==}
engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'}
typescript@5.9.2:
resolution: {integrity: sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==}
engines: {node: '>=14.17'}
hasBin: true
undici-types@6.21.0:
resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
undici@5.29.0:
resolution: {integrity: sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==}
engines: {node: '>=14.0'}
zod@3.25.76:
resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
snapshots:
'@actions/core@1.11.1':
dependencies:
'@actions/exec': 1.1.1
'@actions/http-client': 2.2.3
'@actions/exec@1.1.1':
dependencies:
'@actions/io': 1.1.3
'@actions/http-client@2.2.3':
dependencies:
tunnel: 0.0.6
undici: 5.29.0
'@actions/io@1.1.3': {}
'@emnapi/core@1.4.5':
dependencies:
'@emnapi/wasi-threads': 1.0.4
tslib: 2.8.1
optional: true
'@emnapi/runtime@1.4.5':
dependencies:
tslib: 2.8.1
optional: true
'@emnapi/wasi-threads@1.0.4':
dependencies:
tslib: 2.8.1
optional: true
'@fastify/busboy@2.1.1': {}
'@napi-rs/wasm-runtime@0.2.12':
dependencies:
'@emnapi/core': 1.4.5
'@emnapi/runtime': 1.4.5
'@tybys/wasm-util': 0.10.0
optional: true
'@rolldown/binding-darwin-arm64@0.12.2':
optional: true
'@rolldown/binding-darwin-x64@0.12.2':
optional: true
'@rolldown/binding-freebsd-x64@0.12.2':
optional: true
'@rolldown/binding-linux-arm-gnueabihf@0.12.2':
optional: true
'@rolldown/binding-linux-arm64-gnu@0.12.2':
optional: true
'@rolldown/binding-linux-arm64-musl@0.12.2':
optional: true
'@rolldown/binding-linux-x64-gnu@0.12.2':
optional: true
'@rolldown/binding-linux-x64-musl@0.12.2':
optional: true
'@rolldown/binding-wasm32-wasi@0.12.2':
dependencies:
'@napi-rs/wasm-runtime': 0.2.12
optional: true
'@rolldown/binding-win32-arm64-msvc@0.12.2':
optional: true
'@rolldown/binding-win32-ia32-msvc@0.12.2':
optional: true
'@rolldown/binding-win32-x64-msvc@0.12.2':
optional: true
'@tybys/wasm-util@0.10.0':
dependencies:
tslib: 2.8.1
optional: true
'@types/node@20.19.11':
dependencies:
undici-types: 6.21.0
rolldown@0.12.2:
dependencies:
zod: 3.25.76
optionalDependencies:
'@rolldown/binding-darwin-arm64': 0.12.2
'@rolldown/binding-darwin-x64': 0.12.2
'@rolldown/binding-freebsd-x64': 0.12.2
'@rolldown/binding-linux-arm-gnueabihf': 0.12.2
'@rolldown/binding-linux-arm64-gnu': 0.12.2
'@rolldown/binding-linux-arm64-musl': 0.12.2
'@rolldown/binding-linux-x64-gnu': 0.12.2
'@rolldown/binding-linux-x64-musl': 0.12.2
'@rolldown/binding-wasm32-wasi': 0.12.2
'@rolldown/binding-win32-arm64-msvc': 0.12.2
'@rolldown/binding-win32-ia32-msvc': 0.12.2
'@rolldown/binding-win32-x64-msvc': 0.12.2
tslib@2.8.1:
optional: true
tunnel@0.0.6: {}
typescript@5.9.2: {}
undici-types@6.21.0: {}
undici@5.29.0:
dependencies:
'@fastify/busboy': 2.1.1
zod@3.25.76: {}
+4 -4
View File
@@ -1,15 +1,15 @@
import { defineConfig } from 'rolldown';
export default defineConfig({
input: 'index.ts',
input: './index.ts',
output: {
file: './index.js',
format: 'esm'
file: './bundle.js',
format: 'esm'
},
platform: 'node',
target: 'node20',
external: (id) => {
// Mark all node modules as external
return id.includes('node_modules') || id.startsWith('@actions/') || id.startsWith('node:');
return id.includes('node_modules') || id.startsWith('node:');
}
});